PDA

View Full Version : Mod Rewrite Friendly URLs Not Working


Jedric
09-04-2010, 03:04 PM
I am trying to setup mod_rewrite for my website, foodnoggin.com. For some reason, the .htaccess I was provided from vBulletin only works for a few certain addresses. For example, if you go to http://foodnoggin.com/members/1-Dustin-Sartoris it will work, but won't if you go to http://foodnoggin.com/content/1-Home or http://foodnoggin.com/forums/2-Main-Forum. I have posted the content of my .htaccess below. Please help me. Thank you.


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]

# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^entries/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]

your24hourstore
09-05-2010, 12:17 AM
do you have prefix's setup?