httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Ionescu <>
Subject Re: [users@httpd] This rewrite rule don't work - in htaccess (mod_rewrite)
Date Tue, 28 Mar 2006 15:43:03 GMT wrote:
> Because it says : "initial URL equal rewritten URL"

Use an URL-path instead of a filepath in the substitution. But with 
access to the httpd.conf - why don't you use the rules in per-server 
context (inside of your <virtualhost>, if you're using virtual hosts)?

#per-dir /forum/:
RewriteCond %{QUERY_STRING} showtopic
RewriteCond %{QUERY_STRING} !(rfurl|view|gopid|....)
RewriteRule ^index\.php$ /forum/index.php?rfurl=original [QSA,L,R]

RewriteCond %{QUERY_STRING} showtopic
RewriteCond %{QUERY_STRING} !(rfurl|view|gopid|....)
RewriteRule ^/forum/index\.php$ /forum/index.php?rfurl=original [QSA,L,R]


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