Webhosting Redirecting: Difference between revisions
Appearance
Content deleted Content added
m clean up, typos fixed: ie: → i.e.: (3), the the → the |
|||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[File:Couk.png|link=:Category:Webhosting]] |
|||
=Redirecting non-www. Requests= |
=Redirecting non-www. Requests= |
||
| Line 31: | Line 28: | ||
HTTP/1.0 301 Page moved |
HTTP/1.0 301 Page moved |
||
Location: |
Location: https://www.testing.me.uk/ |
||
Content-Length: 0 |
Content-Length: 0 |
||
With a blank line at the end (the blank line is important). |
'''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) |
You can download this example here: [[File:index.http.zip]] (Don't forget to unzip and edit the file) |
||
| Line 48: | Line 45: | ||
Do contact support if you need help, as they can do this for you. |
Do contact support if you need help, as they can do this for you. |
||
=Redirecting to another website= |
|||
==Other Webhosting pages== |
|||
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. |
|||
<ncl style=bullet maxdepth=5 headings=bullet headstart=2 showcats=1 showarts=1>Category:Webhosting</ncl> |
|||
# 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 |
|||
[[File:aa-button.png|link=http://aa.net.uk/domains-webspace.html|Webhosting Service page on our main 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 |
|||
[[Category:Webhosting]] |
[[Category:Webhosting|Redirecting]] |
||
[[Category:Domains]] |
|||