Mod_rewrite

software development

#1

All- I’ve read through the past questions and am having trouble with the following rewrite rule:

RewriteEngine on
RewriteRule ^([a-zA-Z/]*)/?$ index.php?page=$1 [R]

It (undesirably) uses the filesystem path, rather than URI relative path, as described here. How to fix this?

a


#2

Try to omit the [R]. The [R] forces a redirect. Normally you just want the URL rewritten.

If this doesn’t help could you try to describe your problem a bit better? What are you trying to do? Where are you redirected to?


[color=#000000]DreamHost Promo Code[/color]: [color=#CC0000]Save $50[/color] with the promo code DREAMTEAM