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
-
Redirect Impact - Moving From SEOmoz to Moz
Hey Guys, This has been on my mind ever since the big announcement, so today I did some searching around for some posts/talk about what the impact of their full site redirect has been for them and didn't find anything. Have they posted on this or are there any threads that I'm missing out on? I'd love to hear more about what the impact has been or any general thoughts/insights people may have. Thanks!
Technical SEO | | TakeLessons
Jon1 -
301 Redirect Help
How would you 301 redirect and entire folder to a specific file within the same domain? Scenario www.domain.com/folder to www.domain.com/file.html Thanks for your Input...
Technical SEO | | dhidalgo11 -
Should I rename URLs to use hyphens instead of underscores?
Hello. We are about to launch a redesigned and significantly expanded site that has traditionally used underscores as separators between words in its URLs. Would you recommend replacing all the underscores with hyphens? That would then require many 301 redirects to maintain any links that might be out there. Thank you!
Technical SEO | | nyc-seo0 -
302 to 301 redirect
Our site has quite a few 302 redirects that really ought to be 301's. Our IT department is really busy so the question is, given that the 302's have probably been in place for years, is it worth changing them to 301's now? Thanks
Technical SEO | | Houses0 -
Index.php and 301 redirect with Joomla
Hi, I'm running Joomla 1.7 with SEF on and I'm trying to do a htaccess redirect which fails. I have approximately 100 in effect so far and all working fine, but I have one snag. Index.php is not working as I need it to when it's redirected to www.myurl.com/ If I turn on index.php redirect to root using this code #index.php to root
Technical SEO | | NaescentAdam
RewriteCond %{HTTP_HOST} ^myurl.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.myurl.com$
RewriteRule ^index.php$ "http://www.myurl.com/" [R=301,L] And then go to www.myurl.com/test.html I'm redirected to the homepage. I think this is because all pages are index.php in joomla. SEOMOZ and Google both think that index.php and root are duplicate pages. Does anyone have any advice for overcoming this? Thanks, Adam0 -
How long should you keep 301 redirects?
Hi, Back in 2009 I decided to update an older site from .htm and .shtml to .php. In order to minimize the impact I would go in every month and do a 301 redirect on the .shtml page to the new .php page. So I have many that range from 2009 through 2010. I had left the old 301's because I felt they would only be used if needed but I would think I should clean up my .htaccess by removing the old 301 redirects if they are not needed. How long should you keep this type of 301 redirect? Thanks!
Technical SEO | | Force70 -
Trailing Slashes In Url use Canonical Url or 301 Redirect?
I was thinking of using 301 redirects for trailing slahes to no trailing slashes for my urls. EG: www.url.com/page1/ 301 redirect to www.url.com/page1 Already got a redirect for non-www to www already. Just wondering in my case would it be best to continue using htacces for the trailing slash redirect or just go with Canonical URLs?
Technical SEO | | upick-1623910 -
Does 301 redirect pass "freshness?"
Greetings! I work for an online retailer, and we recently launched a voting tool that allows customers to voice their opinion whether or not we should carry a new item. It's been a huge success and we've been generating thousands of comments. As a result, it's helped our SEO, and our products are showing up on the first page for some keywords without having any external links pointing to these pages. Our plan is to sell a product if it does well during the voting period. Unfortunately, we're not able to process the sale on the voting page, and need to redirect users to another page on our site. I understand that a 301 redirect transfers "linkjuice" to the new destination URL. But does it also transfer "freshness?" I ask because our new landing pages will not be updated as frequently as the voting pages. Example of our Voting Page:
Technical SEO | | znotes
http://www.uncommongoods.com/voting/product/50012/infant-fortune-cookie-booties Example of Redirected Item Page (where sale can be processed):
http://www.uncommongoods.com/product/baby-tube-socks-set-of-4 Any help/comments would be appreciated. Thank you!0