Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Possible Duplicate:
Does it make a difference if your url ends in a trailing slash or not?
Why treat these as different URLs?

I am doing a 301 redirect in my WP application using .htaccess and have mapped some of the URLs which have either been removed from the new domain or the URL structure has been changed. While doing I got a doubt

I have following URL structure in my .htaccess file

RewriteCond %{HTTP_HOST} ^old.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.old.com$
RewriteRule ^tag/waiting$  http://www.new.com/tag/relationships [R=301,L]

while checking this i found that at some places URL is like http://www.new.com/tag/relationships while at others its like http://www.new.com/tag/relationships/, while both refer to the same location but not sure if this will make any difference to SEO and search engines. Please suggest if the way i am doing mapping is correct or do i need to modify it to handle both UR

share|improve this question

marked as duplicate by paulmorriss, Su', John Conde Mar 23 '12 at 17:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
And also What is the difference between http://example.com/ and http://example.com for domain-only. –  Su' Mar 23 '12 at 16:54
add comment

2 Answers 2

up vote 7 down vote accepted

Technically speaking http://www.new.com/tag/relationships and http://www.new.com/tag/relationships/ are two different pages just like http://www.example.com/ and http://www.example.com/index.html are two different pages even though they pull up the same page.

To make sure the search engines understand that http://www.new.com/tag/relationships and http://www.new.com/tag/relationships/ are the same page use canonical URLs. This tells the search engines that these pages are the same and which URL to use in their search results. It also makes sure all links to the canonical URL are credited to the main URL.

share|improve this answer
    
Thanks for the inputs but i am still not sure how can i do that since they will be redirected by the Apache (.htaccess file) to new URL –  Umesh Awasthi Mar 23 '12 at 15:21
    
You put the canonical <link> tag in your web page. It doesn't involve htaccess at all. –  John Conde Mar 23 '12 at 15:25
    
Do you mean i should use one URL say http://www.new.com/tag/relationships in .htaccess file and its version with "/" in the <link> tag on new domain webpage or i need to add this canonical <link> on old domain.being new to this concept its a bit confusing for me –  Umesh Awasthi Mar 23 '12 at 15:38
    
Keep your htaccess file as it is shown above. Then on http://www.new.com/tag/relationships put the canonical <link> tag for http://www.new.com/tag/relationships/. –  John Conde Mar 23 '12 at 15:42
    
Thanks John Conde♦ for quick help will need to see how this can be done in WordPress since the pages at WordPress will be generated dynamically. –  Umesh Awasthi Mar 23 '12 at 15:44
show 1 more comment

Google Webmaster Tools Blog has a good article titled To slash or not to slash

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.