Chat Room Article Base Facebook Page Twitter RSS Feed
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 12:50:05 PM

Login with username, password and session length
Search:     Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12794 Posts in 1521 Topics by 6461 Members
Latest Member: egrovesystems
* Home Help Search Login Register
+  E-commerce forum
|-+  E-commerce
| |-+  Website development
| | |-+  Numpty Alert - Redirects
« previous next »
Pages: [1] Print
Author Topic: Numpty Alert - Redirects  (Read 418 times)
Baa
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« on: November 17, 2010, 07:39:20 PM »

I'm having a bit of an eeek moment. I was running a small test via this site because I'm really struggling with SEO ATM.

http://www.webpagefx.com/seo-tools/crawlerfx/

At the bottom of the page it tells me this,

Quote
Your server is returning a 'temporary redirect' to another URL. 302's do not pass reputation; we recommend changing this to a 301 redirect.

It's never said it before, in fact the other sites score full marks so what am I doing wrong here?

I know it's to do with htaccess and redirects may be managed via the Redirects on CPanel but I'm no expert and wondered if anyone would be kind enough to help please.

My htaccess contains the following with domain name changed

Quote
Options +FollowSymLinks

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.domain.co.uk/ [NC]
RewriteRule ^$ /shop/ [R,L]

RewriteCond %{HTTP_HOST} ^domain\.co.uk
RewriteRule ^(.*)$ http://www.domain.co.uk/$1 [R=permanent,L]

In the same area the site also said the following

Quote
Your pages content-type is text/html; charset=iso-8859-1       Needs Improvement

(What does?) :D Can it be improved?
Logged

You cannot conduct today's business with yesterday's methods and expect your business to grow

Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
scotserve
Guru
Shareholder ;o)
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 820



WWW
« Reply #1 on: November 17, 2010, 08:01:39 PM »

Not a Numpty mod_rewrite can be a real pai to navigate through, some very experienced operators still consider it Voodoo magic

Code:
RewriteRule ^whatever/(.*)$ http://www.domain.com/$1/ [R=301,L]
or
RewriteRule ^index.htm$ http://www.domain.com/ [R=301,L]

So
Code:
Options +FollowSymLinks

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.domain.co.uk/ [NC]
RewriteRule ^$ /shop/ [R=301,L]

RewriteCond %{HTTP_HOST} ^domain\.co.uk
RewriteRule ^(.*)$ http://www.domain.co.uk/$1 [R=301,L]

Should be your code
Logged

Scotserve - Premium Domain and Hosting services since 1994
Baa
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« Reply #2 on: November 18, 2010, 11:58:37 AM »

Thank you thank you thank you Scotserve. I could kiss you (but you wouldn't like it) so  love  love  love

I wish I understood at least 3% of what I am doing with websites.
Logged

You cannot conduct today's business with yesterday's methods and expect your business to grow

Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
Rainee Bows
hobnob keeper
Shareholder ;o)
*****

Karma: 19
Offline Offline

Gender: Female
Posts: 943


Currently Online: 109 visitors - 21 Members.


WWW
« Reply #3 on: November 18, 2010, 01:22:38 PM »

Thank you thank you thank you Scotserve. I could kiss you (but you wouldn't like it) so  love  love  love

I wish I understood at least 3% of what I am doing with websites.

I wouldnt be so sure about him not liking it :p


Rainee
xxxxxx
Logged

If you want the Rainbow,you have to put up with a little Rain
Facebook Articles
Graphic & Web Design Services
Business Network
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
SimplePortal 2.2.2 © 2008-2009