Slash at the end of a url
-
I keep reading contradicting information, so I figured I'll ask here.
What's the best practice for slash '/' at the end of a URL?
Should it be idealchooser.com/search/laptop/ or idealchooser.com/search/laptop (no trailing slash)?
The options:
1. Accept both equally
2. Accept 1 and redirect the other with 301
3. Accept 1 and treat the other as a wrong URL returning 404
Which would be the best for SEO?
Thank you.
-
Thank you very much Matt.
Now I get it
-
Just to be clear that when you decide which version you want to be your main url structure you need to make sure that all your internal should point at the preferred format.
So if you are putting preference on the trailing slash as in your 301 redirect is from none trailing slash to trailing slash then your internal link structure should match.
-
Thank you Matt,
From the article: "The takeaway here is that whenever possible, it is better to internally link to the version with the backslash."
Just to be clear, does this mean that all my internal links should not contain a trailing slash and I should make sure links with a trailing slash are internally redirected to the same page?
If I remember correctly, when I did this SEOmoz marked it as duplicate content, but Google seemed to be fine with it.
I know I'm being very picky here, I just want to make sure I don't loose ranking because of something that seems so minor.
Thanks.
-
I would look at going down the canonical route - have a look at canonicalization guide from SEOMoz here - http://www.seomoz.org/learn-seo/canonicalization
I would add a canonical tag pointing at your preferred format url and I would also do a 301 redirect between the two. Using both won't cause issues and obviously your link juice will keep flowing.
It specifically talks about trailing slashes and redirecting from none trailing to trailing towards the end of the article.
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
-
Why the url inspection is disabled in search console ?
In this situation, how can we make our pages be fetched by google?
On-Page Optimization | | supporthandle0 -
Updating url name of a key page
One of my key pages has a url name that is completely non descriptive ('About') with no keywords in it that match the important content on that page. Should I create a new page with a proper url name and move the contents there (lose the authority of the current page), or create the url name only and redirect to the existing About page?
On-Page Optimization | | ppopov0 -
Query for paginated URLs - Shopify
Hi there, /collections/living-room-furniture?page=2
On-Page Optimization | | williamhuynh
/collections/living-room-furniture?page=3
/collections/living-room-furniture?page=4 Is that ok to make all the above paginated URLs canonicalised with their main category /collections/living-room-furniture Also, does it needs to be noindex, follow as well? Please advice, thank you!1 -
Strange URL resulting a page
Hi, my friend has asked me to take a look at his site. I only know the basics of SEO so I'm learning along the way. He has some duplicate title errors showing in Moz, resulting to this page: https://www.domainname.com/about/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers/money-transfers This URL shows the 'About' page. I have tonnes of pages like this showing with really long URLs that result an actual page. Has anyone seen something like this before? I don't have a clue how this is showing the about page Any advice is greatly appreciated. Thanks James
On-Page Optimization | | Craze_Media0 -
Short URL's vs Optimised URL's
Howdy Mozzers! What are your thoughts on short URL's vs Optimised URL's. For example if a website currently sells wood furniture and wants to target the keyword "Wood Furniture For Sale", which URL would be preferable: Short URL: www.domain.com/wood-furniture Optimised URL: www.domain.com/wood-furniture-for-sale The website also uses facet navigation and selected attributes are added in a fixed order sequence after the category. For example if Cane is selected as wood type: Short URL: www.domain.com/wood-furniture/Cane Optimised URL: www.domain.com/wood-furniture-for-sale/Cane Which one do you prefer (between the short URL and optimised URL) and why? Cheers! MozAddict
On-Page Optimization | | MozAddict0 -
Ajax url returns an error by google. Is there another way besides creating a HTML version?
We trying to find out if there is anything to make it so google does not keep returning errors cuase of our ajax urls. Is there any other option besides creating it all in a HTML format for google to read? Any tips or help would be great!
On-Page Optimization | | DoRM0 -
Maximum length of a URL for good SEO?
Hi there, We have a content database as part of our site and I noticed that the way the database is loaded with new content, it means that the URL’s for these pages are really long, around 100 characters or sometimes more http://www.xxxyy.org/knowledge-base/documents/word1-word2-word3-word4-word5-word6-word7-word8 Is there a suggted maximum character length for a URL? Kind of like for title tag where I max out at 69… Should I truncate the URL’s or at least reduce the numbers of words in them to something less spammy? Does that make a difference? Thanks!
On-Page Optimization | | inhouseninja0 -
Absolute URLs
Hi, this is a very basic question but I want to confirm, as I remembered it was consider a good practice to use the absolute version of your links when linking to other pages of your site, not for any issue related to passing authority or PageRank, but because if someone scraps your content then they would take the links as well (as if they didn't remove them). Have the practices for internal linking with absolute or realtive URLs changed in any way? Which is the best way? absolute or relative? is there any harm for using the relative version? Relative: Absolute: [](<strong><em>http://www.cheapdomain.com/myfolder/mypage.html)[](<strong><em>http://www.cheapdomain.com/myfolder/mypage.html) [Thanks!](<strong><em>http://www.cheapdomain.com/myfolder/mypage.html)
On-Page Optimization | | andresgmontero0