You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2002/02/04 05:12:42 UTC
RE: Help with a RewriteUrl
> From: Null [mailto:Null@Stronger.org]
> I have this rule:
> RewriteRule ^(.*)php?file=$ index.php?$1
>
> Which doesn't work (bad command is sent)
>
> What I'm trying to do is have all traffic from a .php file redirected to
> index.php?Requesturl
I'm thinking you want something more like
RewriteRule ^(.*)\.php$ /full/path/to/index.php?$1 [QSA]
See the RewriteRule docs on [QSA] to see if it is appropriate for your
situation. If you really want to match on the Query string, you'll need to
use a RewriteCond.
Beyond that, please use the RewriteLog to figure out what is really going
on.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org