Announcement

Collapse
No announcement yet.

Mod Rewrite Friendly URLs => .htaccess

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dondavis
    replied
    Hello, thank you for file. But i have problem that i can't solve. When i turn on mod_rewrite urls. I get www.mysite.com/content/theme1 instead www.mysite.com. Help me please to fix it.

    Leave a comment:


  • Bergler
    replied
    Still having some issues and the error url is this http://www.mysite.com/forums/forums/...er-Information any ideas as to why it has forums in twice?

    Leave a comment:


  • Bergler
    replied
    Here is one I was sent through a support ticket that didnt work on my server, maybe it will on someone elses,

    Code:
    # Author: Matty Asia
    # Version 1.6
    # Downloaded from: http://www.vbulletin.com/forum/showthread.php?325798
     
    RewriteEngine On
    Options +FollowSymLinks
     
    ### THIS IS A LITTLE EXTRA SECURITY AND CAN BE REMOVED
     
    RewriteRule ^includes/(.*) index.php
    RewriteRule ^vb/(.*) index.php
    RewriteRule ^packages/(.*) index.php
     
    ### THIS IS THE ACTUAL REWRITE
     
    RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
    RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
    RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
    RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}

    Leave a comment:


  • wIrEs
    replied
    thank you for adding the widget rule.

    Leave a comment:


  • iyama
    replied
    I'm getting this: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. In the browser.

    info:
    Shared server
    htacces 1.6 used
    Placed file in www.myforum.info/forum and on www.myforum.info directory

    Leave a comment:


  • Skyrider
    replied
    I was hoping someone could help me... Everytime I check a section, I'm getting /forum/, EG:

    http://forum.xxxxx.com/forums/4-ESF-Chat

    Can I change the /forum/ in the end and or remove it? It doesn't fit with a http://forum.x subdomain.

    Leave a comment:


  • thedudleys
    replied
    im lost as to why this won't work when the server has the mod rewrite enabled cause the other forum(3.8 that someone else owns) on it has vbseo and its working fine but not this, any really big ideas? im /forums/forums/thread information when trying it with anything mentioned.

    Leave a comment:


  • Bergler
    replied
    Originally posted by rossco_2005 View Post
    There is a htaccess file included with vb4 gold...
    Look in the do_not_upload folder, I think it's do_not_upload/rewrite/apache/.htaccess.
    If you're using IIS then look in the IIS folder instead of apache.
    Is ISS a windows server? The file I posted above worked on my test server, on the same system, just a different domain. I have also used the one in the do_not_upload folder same thing.
    Last edited by Bergler; Sat 26 Dec '09, 7:51pm.

    Leave a comment:


  • rossco_2005
    replied
    Originally posted by Bergler View Post
    Any one have any tips or suggestions? I really want to get this working. Cheers
    There is a htaccess file included with vb4 gold...
    Look in the do_not_upload folder, I think it's do_not_upload/rewrite/apache/.htaccess.
    If you're using IIS then look in the IIS folder instead of apache.

    Leave a comment:


  • Bergler
    replied
    Any one have any tips or suggestions? I really want to get this working. Cheers

    Leave a comment:


  • Bergler
    replied
    Hey all, I have tried all different variations and cant seem to get it to work with my live site. Allthough I have a test site on another domain and this one worked great,
    Code:
    RewriteEngine on
    
    # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
    # RewriteBase /forum/
    
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    
    RewriteRule ^.*$ - [NC,L]
    
    RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
    RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
    
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    
    RewriteRule ^.*$ - [NC,L]
    
    RewriteRule ^(?:(.*?)/)(.*)$ $1.php?r=$2&%{QUERY_STRING}
    It just wont work on my Live site.

    It does work on the threads but not on the forums??

    Leave a comment:


  • wIrEs
    replied
    rules in 1st post are working for me, just one thing, when i try to visit: www.my-site.com ...i also get: www.my-site.com/content/1-home ,, any ideas how to remove content/1-home when i try to visit the front page ?

    Leave a comment:


  • jhabers
    replied
    Has anyone gotten this working with 1and1.com hosting? I am getting 500 errors

    Leave a comment:


  • Green Cat
    replied
    Originally posted by lucky89 View Post
    What's the diference between this one and the .htaccess provided by vbulletin?
    In early betas vB did not provide a .htaccess.

    Leave a comment:


  • lucky89
    replied
    What's the diference between this one and the .htaccess provided by vbulletin?

    Leave a comment:

Related Topics

Collapse

Working...
X