Reply
Setting up a 301 redirect
Old 08-12-2009, 04:08 PM Setting up a 301 redirect
pealo86's Avatar
Webmaster Talker

Posts: 588
Name: El Phantasmo
Location: England, north west
Trades: 0
I set up a .htaccess file on my website and entered this code:

Code:
Redirect 301 /freshbeat.co.uk www.freshbeat.co.uk
As I read that it should improve the SEO of my site. But it just caused an error and Im just presented with this when visiting my site!

Quote:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@freshbeat.mattpealingdesign.co.uk 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.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
I assume I've done something wrong? Do I need to include anything at the top of the .htaccess? Also, my website is located in a sub folder in my hosting account, and I put the .htaccess file in the root of that, i.e. in the same place as where my index.htm file for that website is located.
pealo86 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 08-15-2009, 04:17 PM Re: Setting up a 301 redirect
Super Talker

Posts: 101
Trades: 0
Kindly remove the existing code in .htaccess and place this code.

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]
__________________
AccuWebHosting.Com - Windows Hosting Expert
ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
| Website Hosting

Last edited by twhdir; 08-15-2009 at 04:30 PM..
twhdir is offline
Reply With Quote
View Public Profile
 
Old 08-16-2009, 11:11 AM Re: Setting up a 301 redirect
pealo86's Avatar
Webmaster Talker

Posts: 588
Name: El Phantasmo
Location: England, north west
Trades: 0
thanks that seems to have worked! I had read something similar but I was a bit confused about why an ordinary permanent redirect wasn't working? In fact, the permanent redirect seemed to work for a bit, but then I check later on and was given only error messages!

Oh well it works now, cheers
pealo86 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Setting up a 301 redirect
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.21302 seconds with 13 queries