Page 1 of 1

URL rewriting problem

Posted: Fri Jun 26, 2009 11:09 am
by suneel
I have a problem in URL rewriting. I have tried with all the options

step 1:
Options +FollowSymLinks
RewriteEngine On
RewriteRule abc/name/(.*) abc.php?name=$1

step 2:
AllowOverride None modified None to ALL

Step3: Uncommented LoadModule rewrite_module modules/mod_rewrite.so in http.conf file.

still it doesnt work. Please suggest what am i missing.

sunil025@gmail.com

Re: URL rewriting problem

Posted: Sat Jun 27, 2009 2:56 pm
by Darhazer
This one works for me:

Code: Select all

Options -MultiViews
RewriteEngine On
RewriteRule ^abc/name/(.*)$ abc.php?name=$1
The MultiViews will call your abc.php if it does not find the abc folder... so this may be the reason it does not work. If this doesn't help, please describe what is the error you are receiving... is the abc.php called at all, do you have error HTTP response (500 or 404 or something else), etc.