Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
1 1 8
Impact
~17k people reached

  • 0 posts edited
  • 0 helpful flags
  • 13 votes cast
Oct
19
awarded  Scholar
Oct
19
accepted Conditional 301 redirect depending on server (localhost vs production)
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)