Forum Moderators: phranque

Message Too Old, No Replies

Problems with Mod_Rewrite

         

patrickng01

12:16 pm on Jun 15, 2005 (gmt 0)

10+ Year Member



Hi,

I put this in my httpd.conf under VirtualHost 123.***.0.1:443

RewriteCond %{HTTP_HOST} ^www2\.example\.com [NC]
RewriteRule /tiger/html/([^.]+)\.htm$ [www2.example.com...] [R=301,L]

Looking the httpd_rewrite log, it looks like its going into an infinite loop. How can I stop it?

[edited by: jdMorgan at 3:00 pm (utc) on June 15, 2005]
[edit reason] Example.com [/edit]

jdMorgan

3:02 pm on Jun 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add another RewriteCond testing {SERVER_PORT} to disable the rule if port 443 is requested.

Jim