Changing permalinks, 301 nightmare
-
I would like to change some of permalinks on our website. I have created new posts with new permalinks and the old ones I have redirect by using yoast seo plugin.
Today I have opened a category and I have realized that there are of course the post with new permalinks, but also the old once!
What should I do with the old posts?
-
Sunny greetings from Diani beach Dan! Thank you very much! I wish you very nice day
-
Awesome! Thanks for letting me know it worked and thanks for trying that 'good answer' button a few times
If you ever have any more trouble with anything on Moz - email help@seomoz.org
-
now it just worked...I am cursed:-(
-
Thank you so much Dan for all the explanation! All clear now! I have now manged to do redirect in .htaccesses file. All links are running well now. Thank you so much!
Iam trying to give you the good answer and it is bringing me to Not Found page:-(
I believe I might be cursed by computers and our site will never rank:-(
-
Hi July
This is really three separate things here, so I see why it's giving you trouble.
- Changing permalinks
- Changing what category a post belongs to
- Redirects
When you do one of the above, it does not do the others automatically - for example, changing a permalink will not change the category or add a 301 redirect (by default - although some systems might add the 301 automatically).
So let me explain each one step by step. Realize they are three separate things normally.
1. Changing The Permalink
This is changing the URL. If you wanted to change for example
That's one step. Now. Some plugins may add a redirect for you. So. When you change your permalink
- try visiting the old permalink
- if it redirects - you're all set - you don't need to do a redirect yourself.
- if it does not redirect, you either need to use the redirection plugin or write the redirect in the .htaccess file.
2. Changing What Category The Post Belong To
Note, this is entirely different from just changing a permalink. You need to go to edit that post itself and select your preferred category for that post. This is assuming your not creating any new categories or deleting old categories. You're just moving posts around to different categories.
Then, when you move a post into a different category and remove it from the old one, it will show up under the new category archive.
3. Redirects
As mentioned - these may or may not happen automatically when you change a permalink. I usually prefer them to NOT happen automatically.
This is why it's best of course to decide the final permalink for a post before you hit publish as it's much easier to not have to go back and edit it.
Please let us know if you're still having trouble - thanks!
-Dan
-
Hmmm.Yes, I would try the www in case your server doesn't handle that redirect automatically.
If you can't get it to work, I would remove the 301 redirects you added to the .htaccess file. Again, I would suggest you use the Redirection Plugin:
-
So and now i have pasted redirects of some posts and I am going to check and I can't axes the site! It says Internal server error. And now I am dead:-(
-
Thank you Jeff very much,
But we are not using www, do you thing that I have to include it anyway or is this redirect without www correct? Redirect 301 /geography-kenya-map-kenya/ http://villasdiani.com/where-is-kenya/
-
The basic idea for 301 redirects in htacess is:
`Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html` But if you aren't comfortable writing out a line for each page you've deleted and need redirecting, I would suggest the "Redirection" plugin. It's pretty easy to set up.
-
Thank you very much Jeff, I thought that the only option will be to do it in .htaccess file, any idea how to do it?
-
I think the Yoast SEO Plugin assigns 301 redirects to existing pages, so it can't keep the redirect if you delete the old page. It sounds like you need to either add the 301 redirects directly to your .htaccess file (which isn't too tough if you only have a few), or use another plugin for redirects. The plugin called "Redirection" by John Godley does a good job. Good luck!
-
Most of our permalinks are way to long and almost all contain Diani beach, which is a word we wanted rank for and believed we have to write it everywhere....so I need to change them as it is a problem.
Sure I can change the permalink directly for each of the post, but then all the old posts links will be still not found after I change the link...
I thought with yoast plugin it is going to be easy but it does not make sense for me why if I redirect the post it stays in category. What is it for...who wants to redirect a post and then keep it in a category...
I can't find any answer anywhere:-( I am actually getting to the point that I want to just delete them(it is around 30) and wait until google index the new once, but I am afraid of some punishment..
-
Hmm, that is a bother. Are you not able to edit the permalinks directly for each of the posts? Sorry, maybe I'm just not following, but why create whole new posts?
-
Hi Philip, Thank you very much, yest I would love to, but once I delete them and I go to check the redirects, they do not bring me to the new url but the page is not found:-(
-
Hi,
Would it be possible to delete the old pages if they're not serving any purpose?
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
-
What happens to your domain authority if you are forced to change your website name?
Out of curiosity if for legal reason you or a client were forced to change their domain name, what happens to all of your domain authority once you lose the old domain? While you still own the domain you can easily redirect any old links to your new website, but what happens if you no longer own that domain and someone else purchases it? Do they steal all of your domain authority? Or is it possible to keep those old links pointing toward your website?
Link Building | | SteveKettig0 -
Why Moz OSE, Ahrefs, Majestic and so on, don't change their user agent while crawling?
Some blackhat websites, PBNs and other "cheaters" are using various methods to effectively block third party backlink checker bots (OSE, Ahrefs, Majestic...) : robot.txt, IP and such. A simple solution for those bots would be to mimic Google by using its user agent string for example.
Link Building | | astronaute
Or if not legally permitted (which I doubt) use some kind of randomness in user agent strings, urls, and IPs in order to prevent blocking. This should not be a big deal IMHO, am I missing something obvious ?0 -
Using brand domain for easy verbally said with 301 redirect to exact match.net for a site
I have recently bought an exact match.net for a keyword with no hyphens (on the fence about hyphens, read so many different views on here). From looking around it seems that not all solicited links that I am interested in use anchor text, but more significantly exact match domain would be like automatic anchor text when anyone from the general population posts a link to your site. I sell print books and am thinking of keeping the non-keyword domain in them so they are easy to say and type, while using the exact match domain for everything else online which the non-keyword domain would 301 redirect to. I don't do any programming and will use cPanel on my webhost to do the 301 redirect, I already have one 301 to go to the www subdomain so that would make two 301's. This might sound quite straight forward to many here but it's fairly new to me and I've not seen cPanel mentioned here yet, so was wondering if I am going about it the right way.
Link Building | | Zoolander0 -
301 Direct with a deleted domain newbie
Hello I'm wondering if the 301 redirect to your money site with a high pr deleted domain still works post penguin. Will all the link strength pass on to the new domain? What if the domain has nothing to do with your niche? Does that affect it or no?
Link Building | | 6786486312640 -
Is it good practise to do a 301 redirect from domain.co.uk to www.domain.co.uk?
As the title says really, I'm sure the answer is Yes, but I cannot remember why probably one of the many things I read somewhere along the line and can't recall the reasoning can anyone enlighten me please?
Link Building | | RankStealer0 -
301 to main page or deeper page for best 'link juice'.
I have two rafting websites. One ranks high for one set of keywords. The other ranks okay for a different set. I want to redirect the whole second site to the first to give the first more link juice and hopefully lift the first site even more in the rankings. Would it be better to link to a deeper page of the 1st site. I have a page that does well for some long tail keywords or would it be better to link to the main page. Or is it a bad idea over all.
Link Building | | tkobrien0 -
Changing backlinks anchor text
Hi, I've read a few blog post here that suggests the strength of building links using your brand as an anchor text. This supposedly gives the site authority. Currently a chunck of the back links to my homepage are on generic terms i'm trying to rank for which doesn't seem to be working very well. I was thinking of contacting the various webmasters to change the anchor text to that of the site brand name but wondering if this will signal a manipulation of links to the search engines and potentially could be flagged as paid links? Has anybody done this before and what is the danger of doing this? Thanks Duke
Link Building | | clickangel0 -
Finding competitor's 301's
Is there a way to find out what domains a competitor has 301'd to their main site? I am wondering if a competitor has hidden back links using a 301'd site.
Link Building | | EugeneF0