duplicate content with trailing slash

Using a single web hosting account to host multiple sites

duplicate content with trailing slash

Postby pushpinderbagga » Sun Jul 26, 2009 5:07 pm

Hello

I have a silly query...

could anyone please tell me if

Code: Select all
http://www.okidda.com/tag/windows-media-player-skips-at-end-of-song/


Code: Select all
http://www.okidda.com/tag/windows-media-player-skips-at-end-of-song


are the same page in 2 versions?

will a search engine see this as 2 different pages with similar content ?

the trailing slash sure makes me think on this...

like we have redirected

Code: Select all
http://www.okidda.com to http://www.okidda.com/ automatically ...


is there a way to 301 redirect these tag and category pages as well...

I mean from

Code: Select all
http://www.okidda.com/tag/mandira to http://www.okidda.com/tag/mandira/


and

Code: Select all
http://www.okidda.com/photos/ to http://www.okidda.com/photos
pushpinderbagga
 
Posts: 36
Joined: Fri May 22, 2009 9:43 pm

Postby richardk » Mon Jul 27, 2009 8:17 am

Code: Select all
# Remove trailing slashes from not-directories.
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+)/$ http://www.example.com/$1 [R=301,L]

add it before
Code: Select all
RewriteCond %{HTTP_HOST} ^(example\.com)$ [NC]
RewriteRule .* http://www.%1%{REQUEST_URI} [R=301,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 31 guests

cron