cancel
Showing results for 
Search instead for 
Did you mean: 

How to redirect my PlusNet domain to another site?

Dizzley
Grafter
Posts: 275
Registered: ‎17-04-2007

How to redirect my PlusNet domain to another site?

Hi,
I'm helping someone set up their PlusNet account. They already have a successful website and would like to redirect all traffic from www.THATDOMAIN.plus.com to www.MYGREATDOMAIN.org.uk.
I've looked around but can't find the info.
Is there a control panel setting for this? Or do I need to set up a redirect using .htaccess etc?
Thx,
Pete
9 REPLIES 9
James
Grafter
Posts: 21,036
Thanks: 2
Registered: ‎04-04-2007

Re: How to redirect my PlusNet domain to another site?

Hi Pete,
I don't believe that this is possible on Plusnet webspace (I just checked my account and couldn't see any way of doing it and Chris confirms it's not possible).
Dizzley
Grafter
Posts: 275
Registered: ‎17-04-2007

Re: How to redirect my PlusNet domain to another site?

Quote from: Jameseh
I don't believe that this is possible on Plusnet webspace...

Can't I just create a .htaccess file with:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.mygreatdomain.com/$1 [R=301,L]

Or does that not apply in this situation, where mygreatdomain.com isn't hosted at PlusNet?
...oh and thanks for the reply.  Smiley
csogilvie
Grafter
Posts: 5,852
Registered: ‎04-04-2007

Re: How to redirect my PlusNet domain to another site?

That should work (or something similar to it), regardless of where the www.mygreatdomain.com is hosted.
aj182z
Newbie
Posts: 6
Registered: ‎20-08-2009

Re: How to redirect my PlusNet domain to another site?

I have the same issue...I have tried the following
.htaccess file in the htdocs directory containing...
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
The pages then error with, "Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@plus.net and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log."
I contacted Plusnet support who replied as follows...
Unfortunatly we are unable to provide direct support on this.
The login behind it would be a .htaccess file in the htdocs directory.
This should first check to see if the visitor is looking at www.username.plus.com. It should ignore other requests.
mod_rewrite can then perform a 302 redirect.
The first line can be done with RewriteCond rule, the  second with a RewriteRule.
The forums may be able to offer more specific support.
I'm still no further forward, so any help would be good.
csogilvie
Grafter
Posts: 5,852
Registered: ‎04-04-2007

Re: How to redirect my PlusNet domain to another site?

The following MIGHT do what you want, I'm at work so can't really test it...

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST}  ^www.username.plus.com$
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

I'd try with and without the +FollowSymLinks bit as I'm not 100% sure if it's needed, or will just cause errors.
aj182z
Newbie
Posts: 6
Registered: ‎20-08-2009

Re: How to redirect my PlusNet domain to another site?

You rule!
RewriteEngine On
RewriteCond %{HTTP_HOST}  ^www.username.plus.com$
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
This works perfectly...much appreciated 🙂
csogilvie
Grafter
Posts: 5,852
Registered: ‎04-04-2007

Re: How to redirect my PlusNet domain to another site?

Hmm, I'm glad yours does, as I was trying that on mine and it wasn't working  Grin Grin
aj182z
Newbie
Posts: 6
Registered: ‎20-08-2009

Re: How to redirect my PlusNet domain to another site?

I've tested it in several browsers and from links in search engines and it's all good. thanks again
Gabe
Community Veteran
Posts: 767
Registered: ‎29-10-2008

Re: How to redirect my PlusNet domain to another site?

For canonical hostname rewriting, mod_rewrite rocks. Negative rewriteconds are more comprehensive, so

RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteCond %{HTTP_HOST} !^$

will catch domain.com (without the www subdomain), etc, if that's desired. (Strictly speaking, the dots are escaped, though it doesn't make much difference.)
For simple remote redirects, it's slightly more efficient to use the mod_alias directives, so

RewriteEngine On
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

becomes

Redirect 301 / http://www.domain.com/

which will redirect anything below / to its equivalent location under http://www.domain.com/ or, if you want all requests to redirect to the new index file, use

RedirectMatch 301 ^ http://www.domain.com/

but if it's necessary to manipulate the query string then it takes a rewrite rule, so, for example,

RewriteEngine On
RewriteRule .* http://www.domain.com/? [R=301,L]

removes the query string.
Gabe