12,291
edits
This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!
mNo edit summary |
|||
(4 intermediate revisions by 2 users not shown) | |||
=Redirecting non-www. Requests=
HTTP/1.0 301 Page moved
Location:
Content-Length: 0
'''With a blank line at the end (the blank line is important).'''
You can download this example here: [[File:index.http.zip]] (Don't forget to unzip and edit the file)
Do contact support if you need help, as they can do this for you.
=Redirecting to another website=
The above explains how to redirect yourdomain.com to www.yourdomain.com, bit if you want to redirect yourdomain.com and www.yourdomain.com to a completely different website or page, then you can do a similar thing to the above.
# Create your index.http file as above, but change the 'Location' the the web site or web page that you want to redirect to
# Upload the index.http to your website
## when you FTP you want to add the file to the 'root' as well as the 'www' folder - this will then make sure that the redirect will be used whether you go to your domain with or without the www prefix.
## The easiest way to do this is to FTP using the username www.yourdomain and then repeat the upload with the username without the www. prefix
|
edits