Google Optimization
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsGoogleGoogle Optimization

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old November 4th, 2009, 03:59 PM
Snakeaconda Snakeaconda is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jan 2009
Posts: 8 Snakeaconda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 36 m 41 sec
Reputation Power: 0
What on Earth have I done? [301 redirects - .htaccess]

I have been tinkering around with 301 redirects through .htaccess, and now I don't know what I've gotten myself into.

I initially wanted to redirect WWW to non-WWW URLs, or vice versa to avoid duplicate indexing. (Like http://www.website.com to http://website.com)

Below is the code I have had on my server for a month.
It is doing SOMETHING - this I know, but I don't know what I've done exactly. Can someone decipher my .htaccess script below and tell me what exactly this is redirecting to where?

The Code:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^locksmith-buckhead.com [NC]
RewriteRule ^(.*)$ http://www.locksmith-buckhead.com/$1 [L,R=301]

Any help would be appreciated.

Thanks,
Snake

Reply With Quote
  #2  
Old November 4th, 2009, 10:12 PM
Mr22 Mr22 is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: May 2006
Location: Seattle, Washington
Posts: 57 Mr22 User rank is Corporal (100 - 500 Reputation Level)Mr22 User rank is Corporal (100 - 500 Reputation Level)Mr22 User rank is Corporal (100 - 500 Reputation Level)Mr22 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 52 m 16 sec
Reputation Power: 6
If you haven't fixed it yet then you might want to try this code:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^locksmith-buckhead.com$ [NC]
RewriteRule ^(.*)$ http://www.locksmith-buckhead.com/$1 [R=301,L]

If that doesn't work then you may want to contact your web host and ask them what the proper code is. I don't know alot but I do know that it has something to do with the way your server handles 301's, in either case try the code above, hopefully this will work.

One other thing to keep in mind is that it can sometimes take awhile for the redirect to kick in, but again this will depend on your web host.

Reply With Quote
  #3  
Old November 5th, 2009, 10:03 AM
Snakeaconda Snakeaconda is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jan 2009
Posts: 8 Snakeaconda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 36 m 41 sec
Reputation Power: 0
Thanks for the help, it turned out that the server just took a while to recognize it!



Quote:
Originally Posted by Mr22
If you haven't fixed it yet then you might want to try this code:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^locksmith-buckhead.com$ [NC]
RewriteRule ^(.*)$ http://www.locksmith-buckhead.com/$1 [R=301,L]

If that doesn't work then you may want to contact your web host and ask them what the proper code is. I don't know alot but I do know that it has something to do with the way your server handles 301's, in either case try the code above, hopefully this will work.

One other thing to keep in mind is that it can sometimes take awhile for the redirect to kick in, but again this will depend on your web host.

Reply With Quote
  #4  
Old November 5th, 2009, 10:08 AM
SummitSEO SummitSEO is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Posts: 25 SummitSEO User rank is Private First Class (20 - 50 Reputation Level)SummitSEO User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 55 m
Reputation Power: 0
Use rel="canonical"

You can also use the <link rel="canonical"> tag to let spiders know which domain you prefer. Google treats these similar to a 301, but doesn't actually redirect the visitor.

Reply With Quote
Reply

Viewing: SEO Chat ForumsGoogleGoogle Optimization > What on Earth have I done? [301 redirects - .htaccess]


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek