homepage Welcome to WebmasterWorld Guest from 54.196.62.132
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Underscore to Hyphen, Now Getting Duplicate Message in Google WMT
actolearn




msg:4534455
 9:42 pm on Jan 8, 2013 (gmt 0)

Hello ~

I replaced underscores for hyphens for some of my URL's (ones not sold yet). I want to list the specific URL's because all are 4-5 words and too different to use wildcard.

I downloaded hyphen named files to web host and deleted the underscore ones. In my DB table changed those file names to use hyphens also.

So NOW in my google webmaster tools I'm getting message "duplicate meta descriptions" and "duplicate title tags" for each one.

Below is condensed version of htaccess file. Is there something wrong there? Thank you...


RewriteEngine on
# Use PHP5 as default
AddHandler application/x-httpd-php5 .php .html

# 1 keep here at top
ErrorDocument 404 /notfound.html

# 2 underscore to hyphen
RewriteRule ^file_one\.html$ http://www.example.com/file-one.html [R=301,L]

# 3 underscore to hyphen
RewriteRule ^file_two\.html$ http://www.example.com/file-two.html [R=301,L]

# 4 index.html hidden on home page url
# always keep above canonical code
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.html\ HTTP/
RewriteRule ^(([^/]+/)*)index\.html http://www.example.com/$1 [R=301,L]

# 5 canonical always to www
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

 

jimbeetle




msg:4534464
 10:04 pm on Jan 8, 2013 (gmt 0)

It might be what you have happening is that though THIS_url was deleted and replaced by THIS-URL, Google has not yet caught up with the deletion. So now it's telling you that the title and meta description elements of the two pages are dupes.

actolearn




msg:4534687
 3:27 pm on Jan 9, 2013 (gmt 0)

Ok, I'll wait for the dups to drop off. Thank you.

g1smd




msg:4534690
 3:32 pm on Jan 9, 2013 (gmt 0)

It can take a couple of months for things to catch up.

As long as the site returns to correct 301 redirect for non-canonical requests and there is only ONE step from any non-canonical URL to the canonical URL things should work out OK in the end.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved