142 reputation
17
bio website
location Australia
age
visits member for 3 years, 3 months
seen Jul 24 at 11:35

Oct
3
comment Conditional 301 redirect depending on server (localhost vs production)
Thanks very much for your suggestion. I tried it. When I try to access the URL or IP address of LAN with a port number or directory (eg. localhost:2222/subdir or 192.168.100.10:2222/subdir) , it prepended the www, so I added the following conditions... RewriteCond %{HTTP_HOST} !^localhost.*$ [NC] RewriteCond %{HTTP_HOST} !^192.168.2\..*$ [NC] Do you forsee any side-effects from these conditions? It seems to work. Thanks again...
Sep
30
awarded  Supporter
Sep
30
awarded  Student
Sep
29
asked Conditional 301 redirect depending on server (localhost vs production)