What are the impact of doing URL Rewriting instead of 301 redirections whille optimizing a blog?
-
In WordPress, with the ALL In ONE SEO pluggingm we've optimze the permalinks to show more keewords in the URL'. What can be the impact?
-
Hi Alexandre,
You will need to look at the code in the .htaccess file generated by All in One SEO to see whether the plugin is just using URL rewriting or creating 301 redirects. As far as I am aware, that particular plugin does not have an option to manually stipulate when you wish to create a 301, but the only sure way is to check the code.
You will need to go into your wordpress /blog directory and download the .htaccess file, then open it in a text editor (like notepad). This is a separate .htaccess file, specifically relating to what happens within your wordpress installation.The one in the root folder for your site will not tell you what you are wanting to know.
I don't use All In One SEO as I prefer the Yoast plugin, but typically, what you might expect to see is code that looks something like this:
BEGIN WordPress
<ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /blog/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]</ifmodule>END WordPress
The key to identifying whether the plugin is using standard URL rewrites or creating a 301 Redirect is to look at the very last part of the Rule - the part that is enclosed in square brackets [ ]
A plain vanilla flavored standard URL Rewrite Rule will end with [L]
If the Rule is creating a 301 (Permanent) Redirect, it will end with [R=301,L]
and for a 302 (Temporary) Redirect, it will end with [R=302,L]
As far as your question, which I understand to be asking essentially, "what is the difference" between the two:
-
A standard URL Rewrite is simply instructing the server that any request for a certain URL should be served a different URL. As far as the search engine is concerned, nothing changes. It is simply used to change the ugly URL to a pretty URL (in your case one that contains the keywords you want).
-
A 301 redirect serves the alternative URL, but also sends a signal to the search engine that the URL requested has been permanently replaced with the one that is served. This indicates to the search engine that the requested URL should be removed from the index and replaced with the URL that is served. A 301 redirect also signals to the search engine that most of the link value being passed to the requested URL should now be passed to the URL that replaces it in the index.
Hope that helps,
Sha
-
-
Hi Alexandre,
You will need to look at the code in the .htaccess file generated by All in One SEO to see whether the plugin is just using URL rewriting or creating 301 redirects. As far as I am aware, that particular plugin does not have an option to manually stipulate when you wish to create a 301, but the only sure way is to check the code.
You will need to go into your wordpress /blog directory and download the .htaccess file, then open it in a text editor (like notepad). This is a separate .htaccess file, specifically relating to what happens within your wordpress installation.The one in the root folder for your site will not tell you what you are wanting to know.
I don't use All In One SEO as I prefer the Yoast plugin, but typically, what you might expect to see is code that looks something like this:
BEGIN WordPress
<ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /blog/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]</ifmodule>END WordPress
The key to identifying whether the plugin is using standard URL rewrites or creating a 301 Redirect is to look at the very last part of the Rule - the part that is enclosed in square brackets [ ]
A plain vanilla flavored standard URL Rewrite Rule will end with [L]
If the Rule is creating a 301 (Permanent) Redirect, it will end with [R=301,L]
and for a 302 (Temporary) Redirect, it will end with [R=302,L]
As far as your question, which I understand to be asking essentially, "what is the difference" between the two:
-
A standard URL Rewrite is simply instructing the server that any request for a certain URL should be served a different URL. As far as the search engine is concerned, nothing changes. It is simply used to change the ugly URL to a pretty URL (in your case one that contains the keywords you want).
-
A 301 redirect serves the alternative URL, but also sends a signal to the search engine that the URL requested has been permanently replaced with the one that is served. This indicates to the search engine that the requested URL should be removed from the index and replaced with the URL that is served. A 301 redirect also signals to the search engine that most of the link value being passed to the requested URL should now be passed to the URL that replaces it in the index.
Hope that helps,
Sha
-
-
I'm not 100% familiar with all that ALL IN ONE SEO PACK is doing there, but usually when you use mod_rewrite (most commonly that I've seen amongst SEO's to rewrite to 'www'), it IS a 301 redirect.
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
-
blog url structure change affect on pagerank
We are looking to change our blog structure which will help us with the organization of the topics but the url structure will change if we do this. Right now all of the blogs are under a general news blog, which we will be breaking out articles into several blog category topics Current:
Technical SEO | | theblueprints
example of current structure
current site: https://domain/blogs/news/blog article name Proposed Change:
current site: https://domain/blogs/keyword-name-of-blog-category/blog article name We have ranked #1 for several keywords that we would like to preserve the ranking if we make this switch with 301 redirects. Looking for suggestion on the percentage of chance our ranking will be negatively affected and by how much? Also what everyones recommendation is if we should make this switch or not touch the urls. Your help is appreciated, thanks in advance.0 -
301 Redirects Backlinks?
I am wondering how many people still getting results from 301 redirects from high authority expired domains..? I read few case studies on detailed dot com where the shared some people still making big bucks from this strategy which i think 10beast also implemented few years back.? Is it worth it to test out 301 redirects to money sites.? How many people on the moz community here have implemented this strategy in practical and can share some insights and pros and cons of doing 301 redirects? Many Thanks.
Technical SEO | | asifseo0980 -
URL Changes And Site Map Redirects
We are working on a site redesign which will change/shorten our url structure. The primary domain will remain the same however most of the other urls on the site are getting much simpler. My question is how should this be best handled when it comes to sitemaps because there are massive amounts of URLS that will be redirected to the new shorter URL how should we best handle our sitemaps? Should a new sitemap be submitted right at launch? and the old sitemap removed later. I know that Google does not like having redirects in sitemaps. Has anyone done this on a large scale, 60k URLs or more and have any advice?
Technical SEO | | RMATVMC0 -
301 redirect
What is a proper way to redirect any url containing a give word (anywhere in the url) to another sepcified url? Is it like this? RedirectMatch 301 ^thisword$ http://domain.com/newlocation
Technical SEO | | sesertin1 -
IP address URLs being indexed, 301 to domain?
I apoligize if this question as been asked before, I couldnt' find in the Q&A though. I noticed Google has been indexing our IP address for some pages (ie: 123.123.123.123/page.html instead of domain.com/page.html). I suspect this is possibly due to a few straggler relative links instead of absolute, or possibly something else I'm not thinking of. My less-evasive solution a few months back was to ensure canonical tags were on all pages, and then replaced any relative links w/ absolutes. This does not seem to be fixing the problem though, as recently as today new pages were scooped up with the IP address. My next thought is to 301 redirect any IP address URL to the domain, but I was afraid that may be too drastic and that the canonical should be sufficient (which it doesn't seem to be). Has anyone dealt with this issue? Do you think the 301 would be a safe move, any other suggestions? thanks.
Technical SEO | | KT6840 -
301 an old URL with a ? in the URL?
I am redoing a site and the URL's are changing structure. The client's site was in magento and in the store they would get two URLs, for example: /store/categoryname/productname and /store/categoryname/productname?SID=dslkajsfdoiu947598whouieht983hg98 Do I have to 301 redirect both of these URL's to their new counterpart? Both go to the same content but magento seemed to add these SIDs into the navigation and Google has both versions in the index.
Technical SEO | | DanDeceuster0 -
Joomla 301 redirects
hi i am using joomla sef404 and i have 7000 not found pages in my webmaster google tool page. the trouble is i got rid of a lot of pages and also components so now i am left with loads of not found pages. what i want to try and do is to create 301 redirects so that i do not lose page rank. can anyone please let me know how to do this step by step please
Technical SEO | | ClaireH-1848860 -
301 Redirect Help
Hello! I am getting ready to launch my freshly coded site in the next week or so. My product URLs are changing SLIGHTLY and want to confirm I am going about things the right way: A. My LIVE site store URLs look like http://hiphound.com/shop/dog-collars . My DEV site store URLs look like http://hiphound.com/dog-collars . No /shop directory. B. The dev firm installed the rewrite rule below: ############################################ enable rewrites Options +FollowSymLinks RewriteEngine on #RedirectMatch 301 ^/shop?/$ http://hiphound.com/ RedirectMatch 301 ^/shop?/$ http://hiphound.com ########################################### C. When I manually enter a URL with /shop in the address the website redirects to the correct page which is good. QUESTIONS I HAVE 1. Is the above redirect correct? I need them to permanent. Don't think the above is right... 2. Will links in the Google index be redirected as well? I am assuming yes but just want to confirm. 3. For each page indexed in Google will its pagerank, etc. be passed to the new page using just the 301 above? 4. Do I need to create addtional 301s for each page? So mapping the old page to the new page? Please advise. The goal here is to of course preserve the rankings of the pages already in the Google index. THANK YOU!!! Lynn
Technical SEO | | hiphound0