Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



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

Posts: 849
Name: Matt Pealing
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.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 08-15-2009, 04:17 PM Re: Setting up a 301 redirect
Super Talker

Posts: 100
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]
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
|
Please login or register to view this content. Registration is FREE

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
Super Spam Talker

Posts: 849
Name: Matt Pealing
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
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
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.25236 seconds with 12 queries