Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results 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
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- 301 redirect
301 redirect
03-01-2009 11:51 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi All,
I've been looking at previous posts on how to use a 301 redirect. I'm trying to redirect requests for bestpump.co.uk to www.bestpump.co.uk for SEO reasons.
I have tried the following:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bestpump\.co\.uk [NC]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)$ http://www.bestpump.co.uk/$1?%1 [R=301,L]
Unfortunately, this takes down the entire site and gives a 500 internal server error!
Any ideas, please?
Thanks,
Jeff
I've been looking at previous posts on how to use a 301 redirect. I'm trying to redirect requests for bestpump.co.uk to www.bestpump.co.uk for SEO reasons.
I have tried the following:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bestpump\.co\.uk [NC]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)$ http://www.bestpump.co.uk/$1?%1 [R=301,L]
Unfortunately, this takes down the entire site and gives a 500 internal server error!
Any ideas, please?
Thanks,
Jeff
1 REPLY 1
Re: 301 redirect
04-01-2009 9:24 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Whoops! Seems to have stumped everyone!
Well, I found this on the 'Net and it appears to work perfectly!
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bestpump.co.uk [NC]
RewriteRule ^(.*)$ http://www.bestpump.co.uk/$1 [L,R=301]
Well, I found this on the 'Net and it appears to work perfectly!
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bestpump.co.uk [NC]
RewriteRule ^(.*)$ http://www.bestpump.co.uk/$1 [L,R=301]
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