URL rewriting problem

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
suneel
Forum Newbie
Posts: 1
Joined: Fri Jun 26, 2009 11:03 am

URL rewriting problem

Post 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
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: URL rewriting problem

Post 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.
Post Reply