Wordpress 301 redirects
-
I use wordpress as CMS on a few sites and I noticed that word press automattically places 301s if I change a url etc.
I believe it does it by having the following in the .htaccess file:
BEGIN WordPress<ifmodule mod_rewrite.c="">RewriteEngine OnRewriteBase /RewriteRule ^index.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</ifmodule>
END WordPress
Should I use this? I feel like it limits my control over the 301s.
-
I use the redirection plugin for wordpress to manage this. I personally use it to take care of another site I have redirected to my current site, but don't have access to the .htaccess file, and use it to take care of pages from the old site that don't exist on this site. It has a handy 404 log you can use too, and create redirects right from the 404 list. This might work for your old URLs that were renamed.
-
Do you know if there is a way to edit them with in wordpress? I have some pages that the URLs where renamed prior to launch.
-
Hey,
At the end of the day it's making life easier for you. Stick with it until you notice something you want to change yourself; then go in and have a play with the .htaccess. Don't try and fix something that ain't broke
DD
-
Several times I allowed WP to manage page redirects and this caused no trouble. I cannot say for instances where you rename file more than once as it never happened internally.
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
-
Recently migrated to https version of volusion site. 301 redirect link chain question
I recently migrated to a https version of a volusion site. They have some type of internal 301 redirect method to accommodate for the entire site. I have also used the 301 redirect manager to redirect categories and pages which I have changed. The question is if I have changed a page internally in the redirect manager from say source. /bluewidget to say. target. /superbluewidget is it wiser or even possible to do it this way to reduce the redirect chain from 3 to 2 steps source. /bluewidget to. target https://www.example/superbluewidget can a relative link be targeted to a full url to reduce steps in a 301 redirect link chain. Thanks
Technical SEO | | mrkingsley0 -
301 Redirect to add juice from Keyword A to Keyword B
Here's our situation: Our company sells Employee HANDBOOKS (the book that explains to employees how the company itself is run, more or less). That's the technically correct term for them. However, many people use this term interchangeably with Employee MANUALS. Employee MANUALS are actually slightly different. (they're more specific, usually a list of common office policies and procedures and how to do them) When doing Keyword research, we learned that many, many people search for Employee MANUALS when they actually are interested in an employee HANDBOOK. We've got our page optimized for the Keyword Employee HANDBOOKS, because in our copy we always refer to it as such. Here's my question: Would it be "cloacking" or some other blackhat nonsense if we did this: #1. Take a copy of the current page, and make a second page for it with a slightly different URL, but optimize the SEO-relevant parts for the phrase Employee MANUAL. #2. That page will also include a 301-redirect towards the original page, which is identical except the SEO bits are optimized for Employee HANDBOOKS. My understanding here is that we'd get the SEO juice from the phrase Employee Manual, without actually having to do the upkeep on two different pages. We also avoid having to have a random page SEO optimized for an improper term just because of the general confusion about what the product is called. Are we on the right track here? Or is this going to annoy Google, or not have the result I'm predicting? Any insight is appreciated!
Technical SEO | | CEDRSolutions0 -
301 redirect + new website copy
Hi There, We are currently redeveloping our website and we're rewriting and optimising our many of our service pages. I think I may already know the answer but should we apply 301 redirects from our old services pages to the new versions? The content subject matter will be the same on the new versions, they will just be completely reworded. I would be interested to hear your views. Thanks, Stu
Technical SEO | | Stuart260 -
Htaccess code to 301 redirect a folder change
Hi, I need some help to redirect all my site as there was a folder change. eg, the old structure was www.mysite.com/stuff-1/bags.html and I need it to go to the same structure without the "-1" eg: /stuff/bags.html
Technical SEO | | Paul_MC
The "bags.html" will be lots of different products, so this would be a wildcard? What would the htaccess code need to be? Thanks0 -
302 Redirects for Wordpress Blog Trackbacks
I'm a newbie, and just got my first crawl diagnostics report. I was looking at the temporary redirects, and virtually all of them are trackback URLs from our blog (we use ourdomain.com/blog and Wordpress). The diagnostics report says they're 302 redirects. Is this problematic and, if so, can you suggest the best way to fix the problem? Thanks in advance for your help!
Technical SEO | | sally580 -
Loss of search engine positions after 301 redirect - what went wrong?!?
Hi Guys After adhering to the On Page optimisation suggestions given by SEOmoz, we redirected some of old urls to new ones. We set 301 redirects from the old pages to new on a page by page basis but our search engine ranking subsequently fell off the radar and lost PR. We confirmed redirection with fiddler and it shows 301 permanent redirect on every page as expected. To manage redirection using a common code logic we executed following: In Http module, using “rewrite path” we route “all old page requests” to a page called “redirect.aspx? oldpagename =[oldpagename]”. This happens at server side. In redirect.aspx we are redirecting from old page to new page using 301 permanent redirect. In the browser, when old page is requested, it will 301 redirect to new page. In hope we and others can learn from our mistakes - what did we do wrong ?!? Thanks in advance. Dave - www.paysubsonline.com
Technical SEO | | Evo0 -
Redirects
Hello, My question is: how important is it to wait for the a redirect to get seen and cached before you take down the old page? More in depth: my old platform has seriously limited my ability to add sitemaps and make edits to htacces. I just want to change nameservers (which will delete everything on there) and upload the htaccess is that alright? Another way of saying it: when redirecting a page, is it necessary for google to see the old page before it is deleted? Thanks Tyler
Technical SEO | | tylerfraser0 -
301 redirect: Old pages to new
Hi, We have recently made some changes to our agency site. Looking in webmaster tools we have identified a number of old pages with existing link juice. Not a great deal mostly 32/100 PA. There are a mixture of URLs "meet the team" and people pages etc. The anchor text on the majority of pages is our brand name. Could we now 301 all these pages to one page, or is this a no no in the eyes of Google? Any help greatly appreciated. Best Regards Sean
Technical SEO | | Yozzer0