Re: [users@httpd] This rewrite rule don't work - in htaccess (mod_rewrite)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you very much

Robert Ionescu a écrit :
webmaster@xxxxxxxxxxxxxxxxxxxxx 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]



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux