Link to home
Start Free TrialLog in
Avatar of maUru
maUru

asked on

just another mod_rewrite Q

sorry about this but im tired and in no mood to think.

RewriteEngine on
Options +FollowSymlinks
RewriteBase /

RewriteRule ^(.+)$ /dealers/handler.php?name=$1 [QSA,L]

why wont that work

alli want is to change www.domain.com/blabla into www.domain.com/dealers/handler.php?name=blabla
Avatar of D4Ly
D4Ly

Hi maUru-

RewriteRule ^/([0-9a-zA-z]+)(/)?$ /dealers/handler.php?name=$1 [QSA]
Avatar of maUru

ASKER

nope doesnt work
RewriteEngine On
RewriteRule ^/([0-9a-zA-z]+)(/)?$ /dealers/handler.php?name=$1 [QSA]

works for me...sorry.
Avatar of maUru

ASKER

show me a website that its working on.
http://www.d4ly.com/whateveryoulike

you may need to remove the first slash:

RewriteEngine On
RewriteRule ^([0-9a-zA-z]+)(/)?$ /dealers/handler.php?name=$1 [QSA]
Avatar of maUru

ASKER

yep took off the slash and it messes up my site now...500 error...any ideas?
ASKER CERTIFIED SOLUTION
Avatar of D4Ly
D4Ly

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial