In webhost4life, anybody understand how I'm able to redirect the consumer once the they hit the main domain, i.e. gogo.com redirect to world wide web.gogo.com
I have found a configuration file within the root known as httpd.ini
This consists of the followig
[ISAPI_Rewrite] ### subdomain redirect v2 ### RewriteCond Host: ?gogo.com RewriteCond URL ^gogo.com/(.*) RewriteCond METHOD GET RewriteRule .? world wide web.gogo.com/(.*) /$1 [I,R] RewriteCond Host: (?:.+.)?gogo.com RewriteCond METHOD Publish RewriteRule ^/gogo.com/(.*) /$1 [I] RewriteCond Host: (?:.+.)?gogo.com RewriteRule (.*) /gogo.com/$1 [I,L]
Can someone explain the way i can alter this? I have found some code on mod_rewrite but this really is iis. I do not have an excellent understadning of standard exressions making this a little of the black art in my experience
Can any help?
technically you are not speaking concerning the domain but instead the webserver's reaction to a request. it is possible a variety of ways, but take a look at Apache's mod_rewrite.
Begin to see the section "Canonical Hostnames" at http://httpd.apache.org/paperwork/2./misc/rewriteguide.html
If you work with that old WebHost4Life interface, just click on "Set Redirection" and point gogo.com to world wide web.gogo.com
I believed it! :)
# Move everything from non- world wide web.example.com -> world wide web.example.com # e.g. example.com -> world wide web.example.com RewriteCond %HTTPS off RewriteCond Host: (?!^world wide web.example.com)(.+) RewriteRule /(.*) http://world wide web.example.com/$2 [I,RP]
I simply added this above changing the domain :)