dns - webhost4life make root domain point to www, httpd.ini -


in webhost4life, know how can redirect user when hit root domain, i.e. gogo.com redirect www.gogo.com

thanks

-mantisimo

i've found configuration file in root called httpd.ini

this contains followig

[isapi_rewrite]  ### subdomain redirect v2 ### rewritecond host: ?gogo\.com rewritecond url ^gogo.com/(.*) rewritecond method rewriterule .? www.gogo.com/(.*) /$1 [i,r] rewritecond host: (?:.+\.)?gogo\.com rewritecond method post rewriterule ^/gogo.com/(.*) /$1 [i] rewritecond host: (?:.+\.)?gogo\.com rewriterule (.*) /gogo.com/$1 [i,l] 

can explain how can change this? i've found code on mod_rewrite iis. dont have great understadning of regular exressions bit of black art me

can help?

thanks

technically you're not talking domain rather webserver's response request. can done number of ways, check out apache's mod_rewrite.

see section "canonical hostnames" @ http://httpd.apache.org/docs/2.0/misc/rewriteguide.html


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -