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


2 Answers 2


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.

  • 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 Mar 23, 2012 at 15:21
  • You put the canonical <link> tag in your web page. It doesn't involve htaccess at all.
    – John Conde
    Mar 23, 2012 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 Mar 23, 2012 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, 2012 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. Mar 23, 2012 at 15:44

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

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