Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
.htaccess for 301 redirect
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- .htaccess for 301 redirect
.htaccess for 301 redirect
20-08-2009 11:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi I need your help please...OK, so basically what I'm looking to do is as follows
Due to some web hosting issues (which I won't go into) my website has been wrongly indexed by the search engines as www.username.plus.com and I would like it to be www.mynewdomainname.com and not the local plusnet account domain name...also I want to set it up so that if you type in the plusnet URL it will redirect to my domain name too.
I was told I can use a .htaccess file to do this, but I don't have a clue about .htaccess files so any help you can give me will be appreciated 🙂
Due to some web hosting issues (which I won't go into) my website has been wrongly indexed by the search engines as www.username.plus.com and I would like it to be www.mynewdomainname.com and not the local plusnet account domain name...also I want to set it up so that if you type in the plusnet URL it will redirect to my domain name too.
I was told I can use a .htaccess file to do this, but I don't have a clue about .htaccess files so any help you can give me will be appreciated 🙂
Message 1 of 4
(2,723 Views)
3 REPLIES 3
Re: .htaccess for 301 redirect
21-08-2009 9:42 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Information about .htaccess files on Plusnet Webspace can be found on the .htaccess tutorial.
You should be able to do something to help redirect it to a different place as well, but you'll need to be careful as both the username.plus.com and the mynewdomainname.com will read the same .htaccess file.
You should be able to do something to help redirect it to a different place as well, but you'll need to be careful as both the username.plus.com and the mynewdomainname.com will read the same .htaccess file.
Message 2 of 4
(692 Views)
Re: .htaccess for 301 redirect
21-08-2009 11:02 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
thanks but the tutorial does not contain the information I need.
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 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.
Message 3 of 4
(692 Views)
Re: .htaccess for 301 redirect
21-08-2009 11:09 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This is the solution thanks to CSO on another post http://community.plus.net/forum/index.php/topic,78811.0.html
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.username.plus.com$
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.username.plus.com$
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
Message 4 of 4
(692 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- .htaccess for 301 redirect