httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Ionescu <robsie...@googlemail.com>
Subject Re: [users@httpd] This rewrite rule don't work - in htaccess (mod_rewrite)
Date Tue, 28 Mar 2006 15:43:03 GMT
webmaster@invader-universal.com 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]

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

-- 
Robert

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message