To slash or not to slash - Going from no trailing slashes to trailing slashes sitewide
-
A friend has a large site and his dev team are about to launch with the sitewide addition of trailing slashes on urls, which are not on the original site. Both versions of the url work e.g. /example and /example/ and the dev team is reluctant to change back as it will take 3 days (developers hey?)
My SEO mind tells me this is a bad thing. Yes you could:
-
301 from non slash to slash but sitewide I don't like the idea because of the small loss in link juice x lots of pages.
-
You could canonical from non slash to slash but the non slash is the original and canonicals are supposed to point to the original version of the content.
-
Any thoughts appreciated
-
Couldn't the devs use the htaccess file to force the / version to the non / version?
-
-
That seems like too much work. I would do this instead:
- Add rel=canonical on the non-/ version
- Use htaccess to force the non-/ version
- And update the sitemaps
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Trailing Slashes on URLs
Hi we currently have a site on Wordpress which has two version of each URL trailing slash on URLs and one without it. Example: www.domain.com/page (preferred version - based on link data) www.domain.com/page**/** The non-slash version of the URL has most of the external links pointing to them, so we are going to pick that as the preferred version. However, currently, each version of every URL has rel canonical tag pointing to the non-preferred version. E.g. www.domain.com/page the rel canonical tag is: www.domain.com/page/ What would be the best way to clean up this setup? Cheers.
Intermediate & Advanced SEO | | cathywix0 -
I have implemented rel = "next" and rel = "prev" but google console is picking up pages as being duplicate. Can anyone tell me what is going on?
I have implemented rel="next" and rel = "prev" across our site but google console is picking it up as duplications. Also individual pages show up in search result too. Here is an example linkhttp://www.empowher.com/mental-health/content/sizeismweightism-how-cope-it-and-how-it-affects-mental-healthhttp://www.empowher.com/mental-health/content/sizeismweightism-how-cope-it-and-how-it-affects-mental-health?page=0,3The second link shows up as duplicate. What can i do to fix this issue?
Intermediate & Advanced SEO | | akih0 -
NGinx rule for redirecting trailing '/'
We have successfully implemented run-of-the-mill 301s from old URLs to new (there were about 3,000 products). As normal. Like we do on every other site etc. However, recently search console has started to report a number of 404s with the page names with a trailing forward slash at the end of the .html suffix. So, /old-url.html is redirecting (301) to /new-url.html However, now for some reason /old-url.html/ has 'popped up' in the Search Console crawl report as a 404. Is there a 'blobal' rule you can write in nGinx to say redirect *.html/ to */html (without the forward slash) rather than manually doing them all?
Intermediate & Advanced SEO | | AbsoluteDesign0 -
Trailing Slashes for Magento CMS pages - 2 URLS - Duplicate content
Hello, Can anyone help me find a solution to Fixing and Creating Magento CMS pages to only use one URL and not two URLS? www.domain.com/testpage www.domain.com/testpage/ I found a previous article that applies to my issue, which is using htaccess to redirect request for pages in magento 301 redirect to slash URL from the non-slash URL. I dont understand the syntax fully in htaccess , but I used this code below. This code below fixed the CMS page redirection but caused issues on other pages, like all my categories and products with this error: "This webpage has a redirect loop ERR_TOO_MANY_REDIRECTS" Assuming you're running at domain root. Change to working directory if needed. RewriteBase / # www check If you're running in a subdirectory, then you'll need to add that in to the redirected url (http://www.mydomain.com/subdirectory/$1 RewriteCond %{HTTP_HOST} !^www. [NC]
Intermediate & Advanced SEO | | iamgreenminded
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L] Trailing slash check Don't fix direct file links RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.)/$
RewriteRule ^(.)$ $1/ [L,R=301] Finally, forward everything to your front-controller (index.php) RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [QSA,L]0 -
Best Way To Go About Fixing "HTML Improvements"
So I have a site and I was creating dynamic pages for a while, what happened was some of them accidentally had lots of similar meta tags and titles. I then changed up my site but left those duplicate tags for a while, not knowing what had happened. Recently I began my SEO campaign once again and noticed that these errors were there. So i did the following. Removed the pages. Removed directories that had these dynamic pages with the remove tool in google webmasters. Blocked google from scanning those pages with the robots.txt. I have verified that the robots.txt works, the pages are longer in google search...however it still shows up in in the html improvements section after a week. (It has updated a few times). So I decided to remove the robots.txt file and now add 301 redirects. Does anyone have any experience with this and am I going about this the right away? Any additional info is greatly appreciated thanks.
Intermediate & Advanced SEO | | tarafaraz0 -
What would cause all main pages to go from various PR1 PR2 PR3 to PR Unranked?
Weird, my rankings have fallen on one of my sites and all the main pages that were ranking are now PR unranked. We did ad some domains to a disavow file, but nothing major that should have had an impact like this. Pages are all allowed to be indexed and not blocked and are currently indexed in Google. Can Google just come around and decide they don't like these pages anymore and PR unrank them all?
Intermediate & Advanced SEO | | irvingw0 -
Still Going Down In Search
After signing up to SEOmoz as a pro user and sorting out all the things that the search flagged up with our website (htyp://www.whosjack.org) we jumped very slightly in search only to continue going down again. We are a news based site, we have no dup content, we have good writers and good orangic links etc I am currently very close to having to call it a day. Can anyone suggest anything at all from looking at the site or suggest a good SEO firm that I could talk to who might be able to work out the issue as I am totally at a loss as to what do do now. Any help or suggestions greatly appreciated.
Intermediate & Advanced SEO | | luwhosjack0 -
What is the best route SEO wise for implementing a Wordpress blog that has a domain under go daddy and hosting under a third party like Kalio Commerce?
I am currently trying to implement a Blog on a Ecommerce site that has its domain set up under Go Daddy, but it is hosted under a platform called Kalio Commerce. I am trying to implement a Wordpress blog because I am most familiar with it and believe it offers more strength SEO wise but the Ecommmerce platform by Kalio does not offer the ability to install Wordpress or any CMS platform other than its own. I am stuck wondering if I could find a way to either implement a blog through a sub-folder (mydomain.com/blog) while using wordpress on hosting added to the go daddy server under their domain. If Kalio Commerce doesn't have any way of adding a blog to its own hosting is this hindering my clients ability to be fully optimized for fresh content? Now I am not too familiar with adding sub-domains with hosting under a different platform. I am more in tune with building a wordpress ecommerce site and implementing blogs under the wordpress structure. This is a leap for me and it is getting to be a little overwhelming so if any one has prior experience with this please let me know if I can find a way through this without putting my SEO consulting at risk. So far I have gotten to the conclusion that I can set up hosting for the companies site under Go Daddy even though they have their hosting under Kalio. If I am to set up hosting under Go Daddy would this cause the DNS routing to be compromised. If this is so must I set up hosting under a separate domain (myotherdomian.com) and have Kalio set up a Sub-Folder like so (mydomain.com/blog) and just have the DNS of the blog installed on (myotherdomain.com) point to the folder in Kalio hosting for mydomain.com? So now that I explained my situation, what is the best route SEO wise for implementing a Wordpress blog that has a domain under go daddy and hosting under a third party like Kalio Commerce?
Intermediate & Advanced SEO | | cscoville0