SEO, 301s & backslashes at end of URL
-
Wordpess started adding "/" (slashes) at the end of my urls and I've left them up for some time. Will removing them hurt search rankings or do I need to do a 301 redirect?
For example - www.site.com/page1/ changed to www.site.com/page1
Are there any other ramifications I may not be thinking about besides just search rankings.
-
Thank you so much!
-
So, this is HUGE technical SEO mess.
There are two chances - hosting or plugin:
- Hosting - you can fix this with .htaccess quick. There are lot of examples in internet about adding or removing slash in end of url. You need to check and recheck your .htaccess or webserver configuration.
- Plugin - sometime when WP update their plugins some of them comes with something more than bugfix or improvement. This is how they think "shouldn't hurt anybody", but in reality hurt ANYBODY because broke things. You need to try disable plugins one-by-one and see is this caused from them. This can be caused also from theme, WP itself and/or some custom code.
This is cause of problem. But fix is hard because you need evaluate approx time of chance. There are two cases:
- If this happen soon you should fix it ASAP because for bots old pages are missing (you need to confirm that, please check, sometime they can 301 to new page).
- If this happen few months ago and rankings wasn't lost then you can leave it in new format (do also .htaccess fix!). If rankings was lost then you can try to fix this (and also .htaccess fix!). It's difficult decision anyway.
As you can see everything dependent how long is this change and what damages already make. Try to see in SearchConsole more info about crawl and ranking.
I will save you little time with code for removing AND adding trailing slashes:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*[^/])$ /$1/ [L,R=301]First code remove /, second code add / to urls. You also need to check canonicals, sitemaps and fix them according changes.
And one tip. You should always install in WP some plugin for backups. Period. You wasn't first nor last person in the world with situation "something happens". Of course one weekly backup cost you a penny and can save many hours of debugging or trying to fix things. There are many plugins in market with many different features so i can't give advise what will fit to your needs.
-
Will doing so have any impact on rankings or can I just make the full switch all at once without 301's.
-
So does this mean that you can access the same content with and without '/' ?
This would mean duplicate content and duplicate content isnt really liked by Google. You can redirect these urls to the preferred one by using htaccess
There should only be one version live.
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
-
Placement of key words in URL
I notice that the MOZ Page Grader considers "/keyword1/keyword2-keyword3" in a URL string to be less effective than "/keyword1-keyword2-keyword3". Is this correct from Google's perspective? If I am trying to maximise my SEO for the page title "Business building tips", for example, does Google think my URL is more relevant if it's in the form: 1. www.website.com/business-building-tips
On-Page Optimization | | Gavin.Atkinson
2. www.website.com/business/building-tips or
3. www.website.com/business/business-building-tips My instinct tells me 3 is more powerful, but logic tells me if I have a whole section devoted to "business" and one of those pages is "business building tips" then 2 should work just as well, possibly better?0 -
Question For SEO Companies From An On-line Retailer
When employing an SEO company what should I be looking for? When I go to a companies website I look for how many keywords they have ranked on Semrush. Most of the companies that I have looked at do not rank very many. Saying most I am talking about 10-12 companies. There was one company that had a lot more than anyone else but their reviews were awful. Then I look at their clients websites to see how many keywords they have ranked and this is where I am baffled. Quite a lot of them especially retail sites with lots of products have very few keywords ranked and my belief is that the more related keywords that you have ranked the better you will do. I also look at how the thier organic traffic is doing over a number of months. what surprises me most is that companies are advertising clients websites where it looks like traffic is climbing and then all of a sudden there is a big drop. Am I missing something in order to find a company that will do what we are paying them for? Thank you in advance.
On-Page Optimization | | Palmbourne0 -
Moz_pagespped and seo
I am using mod_pagespeed to increase page speed.However it changed image url. before: /cars.jpg after: /cars.jpg.pagespeed.ci.dfdfdfre.webg with:mod_pagespeed This is issue for seo? How can i change it?
On-Page Optimization | | Netliste0 -
Our urls for adwords are slightly different from current urls presented on site (weused htaccess to help create shorter urls). How important is it that the adwords url match the sitemap url for keywords on those pages?
Hello, We have dynamic urls that we have made into short urls through htaccess and code manipulation. Some of our adwords urls are different from our page urls - for example a) Latest version of page www.abc.com/x-y-z.html b) Previous version of url www.abc.com/x+y+z.html c) raw original version www.abc.com/yyy/zzz?category=X&Product-code=Y etc etc. Would my ranking for keywords on the page improve if I diligently made all of them the same? They all go to the same page even now, and no 404 errors or anything. Thanks Sam
On-Page Optimization | | samgold0 -
Submitting URLs to Bing and Google
Does Submitting URLs to Bing and Google actually do anything? Is it worthwhile? What I mean is submitting intermittently individual URLS after already submitting the sitemap.
On-Page Optimization | | FCAbroad0 -
SEO NEWBIE!!!
I am trying to get my website (and business) to the top of the search engines..just like everybody else here. 🙂 I have no idea what I am doing and I have to do this myself, because I do not have the extra money to hire somebody to do it for me. So, my question is... Where can I go to figure out how to do this? I don't know some of the "lingo" used. Like it slow crawled my sites and it wants me to fix a few things and I don't know what it is talking about. HELP!!! Becky
On-Page Optimization | | BeLaRouge0 -
How to leverage user reviews & ratings to help in SEO rankings
Folks, We have User Generated Content site in travel domain, we want to leverage reviews & ratings for SEO rankings/CTR . We already are getting micro formats in google but not in all the cases. Any ideas/suggestions will be really very helpful. Thanks in Advance. -Amit
On-Page Optimization | | holidayiq0 -
Wordpress SEo Plug In
Hi, I am researching SEO plug ins for Wordpress - WordpressSEO by Yoast and All-In-One SEO Pack - and I have a question about implementation: In general, what is the impact these plug ins have on blogs with a large archives? Will they make any changes to old posts that may break incoming links or require me to go back and make edits to each of the old posts? Also, the main thing I want to do is allow for custom total tags. Is there another way to get this functionality? Or should I stick with a plug in because of all the other SEO benefits? Thanks
On-Page Optimization | | AmyLB0