httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Wigg <>
Subject Re: [users@httpd] RewriteRule help please
Date Mon, 23 Nov 2009 11:32:29 GMT
> I have the following rewrite rule ..
> RewriteRule products/specials(.*)(.*)
> /products/index.php?view=specials&$1=$2 [L]
> -->
> The problem is the trailing '='
> I have also tried RewriteRule wheels/specials([0-9]+)
> /wheels/index.php?view=specials&$1 [L]
> but this rule results in internal server errors.

One problem in your first rule is that the '(.*)(.*)' part. (.*)(.*)
is functionally equivalent to just a single (.*), so your $2 will
always be empty (this is causing the trailing =). Maybe just try:-

RewriteRule products/specials(.*) /products/index.php?view=specials&$1 [L]

If that's not what you're after, I think I'd need a couple of examples
of the URL you're trying to rewrite and what you're expecting it to be
rewritten to, as I don't completely understand it at the moment.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message