1and1 Hosting issue

thetime22

Free Member
Dec 7, 2010
894
113
Does anyone on here use 1and1 internet hosting? I am trying to do a 301 redirect from one domain to another but can only make it 302 or a frame redirect. Of course in typical 1and1 style I call their 7p a min help line and am placed in a queue for 20 mins.. I decided to hang up and post in here instead. Any ideas?
 

Imran Mughal

Free Member
Oct 19, 2010
39
8
Leeds
use a .htaccess file is the directory root. example below

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^drgarra.co.uk [NC]
RewriteRule ^(.*)$ http://www.drgarra.co.uk/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^doctorgarra.co.uk [NC]
RewriteRule ^(.*)$ http://www.drgarra.co.uk/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.doctorgarra.co.uk [NC]
RewriteRule ^(.*)$ http://www.drgarra.co.uk/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^doctorgarra.com [NC]
RewriteRule ^(.*)$ http://www.drgarra.co.uk/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.doctorgarra.com [NC]
RewriteRule ^(.*)$ http://www.drgarra.co.uk/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^drgarra.com [NC]
RewriteRule ^(.*)$ http://www.drgarra.co.uk/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.drgarra.com [NC]
RewriteRule ^(.*)$ http://www.drgarra.co.uk/$1 [L,R=301]
 
  • Like
Reactions: thetime22
Upvote 0
J

Jeff Knows

You could do it with a .htaccess file in the root directory of the domain you wish to redirect.

Say you want to point the .com to the .co.uk | In the .com root directory place a .htaccess file containing;
(Obviously changing mydomain to whatever your domains are)
Code:
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.com 
RewriteRule (.*) http://www.mydomain.co.uk/$1 [R=301,L]

Bah, beaten to it by Imran
 
Last edited by a moderator:
  • Like
Reactions: thetime22
Upvote 0

thetime22

Free Member
Dec 7, 2010
894
113
You could do it with a .htaccess file in the root directory of the domain you wish to redirect.

Say you want to point the .com to the .co.uk | In the .com root directory place a .htaccess file containing;
(Obviously changing mydomain to whatever your domains are)
Code:
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.com 
RewriteRule (.*) http://www.mydomain.co.uk/$1 [R=301,L]

Bah, beaten to it by Imran

and how long does this take to take effect once i have made the changes~?
 
Upvote 0

fisicx

Moderator
Sep 12, 2006
46,774
8
15,420
Aldershot
www.aerin.co.uk
You do realise that 1and1 have their servers in Germany. This means any sites with a generic tld (com, net, org) will rank better on google.de than on google.co.uk.

If you change the site to a .co.uk then the location of the hosting servers becomes less of an issue.
 
Upvote 0

thetime22

Free Member
Dec 7, 2010
894
113
You do realise that 1and1 have their servers in Germany. This means any sites with a generic tld (com, net, org) will rank better on google.de than on google.co.uk.

If you change the site to a .co.uk then the location of the hosting servers becomes less of an issue.

Gumtree is in Holland, but then again they aren't really a great example considering how huge they are.. they can be in Holland if they want.. I think so long as the backlinks are generated in the UK shouldn't be a problem.
 
Upvote 0
You do realise that 1and1 have their servers in Germany. This means any sites with a generic tld (com, net, org) will rank better on google.de than on google.co.uk.

If you change the site to a .co.uk then the location of the hosting servers becomes less of an issue.

True. You can sway them towards UK by entering your geographical targetting preference into Google Webmaster Tools however.

http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=62399
 
Upvote 0

thetime22

Free Member
Dec 7, 2010
894
113
It's official 1and1 only offer frame redirects and 302 temporary ones. No 301 permanent redirects. I think my only option is to transfer the nameservers over to my godaddy host and from go daddy do a 301 redirect using their simple options (which 1and1 clearly lack).
 
Upvote 0

computer storm

Free Member
Aug 1, 2008
487
134
Kilmarnock
It's official 1and1 only offer frame redirects and 302 temporary ones. No 301 permanent redirects. I think my only option is to transfer the nameservers over to my godaddy host and from go daddy do a 301 redirect using their simple options (which 1and1 clearly lack).

Try this code it may work.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteCond %{REQUEST_URI} !^/forums/
RewriteRule (.*) /forums/$1
 
Upvote 0

fisicx

Moderator
Sep 12, 2006
46,774
8
15,420
Aldershot
www.aerin.co.uk
I think so long as the backlinks are generated in the UK shouldn't be a problem.
Nope, not going to help in the slighest. Google uses the IP of the server to determine geolocation so while you remain with 1and1 you are going to suffer. Agree that changing the settings in webmaster tools will help but it's more of a hack than a permanent solution.
 
Upvote 0

thetime22

Free Member
Dec 7, 2010
894
113
Nope, not going to help in the slighest. Google uses the IP of the server to determine geolocation so while you remain with 1and1 you are going to suffer. Agree that changing the settings in webmaster tools will help but it's more of a hack than a permanent solution.

It's 1 variable out of 200. Having a host in the UK helps but it's only a very small factor.
 
Upvote 0

fisicx

Moderator
Sep 12, 2006
46,774
8
15,420
Aldershot
www.aerin.co.uk
It's 1 variable out of 200. Having a host in the UK helps but it's only a very small factor.
I really do disagree here. Google uses the tld and then the IP address of the hosting server to determine where best to list (but not rank) the site.

Because you have a .com it will list the site primarily in google.de and google.com. If you have a .co.uk tld then google automatically assumes a UK audience and will ignore the tld.
 
Upvote 0

faarn

Free Member
Feb 22, 2011
1
0
thetime22

How did you get the 301 redirect to work?

I called 1and1 who were worse than useless and simply told me to change the .htaccess file.

As there a quite a number of them which do i change. I have an eshop and if i change the .htaccess (as per the code you suggested) in that folder (shop648734684), it will redirect to my new site but loses all content saying it is in a loop that will never end.

Any help greatly appreciated.
 
Upvote 0

thetime22

Free Member
Dec 7, 2010
894
113
thetime22

How did you get the 301 redirect to work?

I called 1and1 who were worse than useless and simply told me to change the .htaccess file.

As there a quite a number of them which do i change. I have an eshop and if i change the .htaccess (as per the code you suggested) in that folder (shop648734684), it will redirect to my new site but loses all content saying it is in a loop that will never end.

Any help greatly appreciated.

No expert here but there should only be 1 .htaccess file. Make sure you choose in the 1and1 settings NOT to redirect.. don't use the options they give which are frame redirects or the other which is a 302... Then change the .htaccess to

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

worked for me.

ps i'm sorry to hear that your with 1and1
 
Upvote 0

swiftpete

Free Member
Aug 27, 2011
132
25
Hi, I have my site through 1and1 and am also trying to figure out this 301 redirect issue. I would really appreciate some help. I can see my htaccess file in my webspace, but how do I edit it? I've downloaded it to my desktop but I can't open it as apparently it's an apache file. Please, no abuse for not knowing as that doesn't help me :)...
Thanks guys.
 
Upvote 0
Hi, I have my site through 1and1 and am also trying to figure out this 301 redirect issue. I would really appreciate some help. I can see my htaccess file in my webspace, but how do I edit it? I've downloaded it to my desktop but I can't open it as apparently it's an apache file. Please, no abuse for not knowing as that doesn't help me :)...
Thanks guys.

right click the file and click open with notepad
 
Upvote 0

swiftpete

Free Member
Aug 27, 2011
132
25
Ah thanks. So simple..! I now have a new problem though. I am unable to delete or rename my htaccess file through 1and1. I can download it no problem, but I just get an error message if I try and delete it so I can upload another. There is no option to edit it in situ. Any ideas, or am I going to have to contact 1and1?
 
Upvote 0
Ah thanks. So simple..! I now have a new problem though. I am unable to delete or rename my htaccess file through 1and1. I can download it no problem, but I just get an error message if I try and delete it so I can upload another. There is no option to edit it in situ. Any ideas, or am I going to have to contact 1and1?


Yes just upload the one you have changed it will ask you if you want overwrite the other just click yes
 
Upvote 0

swiftpete

Free Member
Aug 27, 2011
132
25
Thanks a lot for the help, I know this is fairly simple for some, but I just don't want to get it wrong and bugger up all access to the site!
My site is raindefenceroofing, so can I just delete the current contents of htacess, put this in

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.raindefenceroofing.com/$1 [R=301,L]

and that'll do it? Or do I need to add that to the bottom of what I already have?

Edit:

I've just tried it and it tells me that the directory is read only, so it won't let me upload anything.
 
Last edited:
Upvote 0
Thanks a lot for the help, I know this is fairly simple for some, but I just don't want to get it wrong and bugger up all access to the site!
My site is raindefenceroofing, so can I just delete the current contents of htacess, put this in

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.raindefenceroofing.com/$1 [R=301,L]

and that'll do it? Or do I need to add that to the bottom of what I already have?

Just add it to the one you have, and if you can rename the old something like .htaccess.OLD so you have a copy of it
 
Upvote 0

Latest Articles