mod_rewrite

mod_rewrite

Posted by: avizollman
Posted on: 2006-01-30 07:26:00

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

Re: mod_rewrite

Posted by: doeleman
Posted on: 2006-01-30 10:10:00

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?


Tags: relative pathtargetdreamhostrewrite ruleurimodcatphpindexhttp