Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

This question already has an answer here:

I have a blog with around 40 posts, and i want to change the URL structure these posts. this is my old URL something like:

http://domain.com/blog/2013/02/04/string-here.html

i want to set the URL like:

http://domain.com/blog/category/string-here/

Now the concern is recently i have get the PR to my site after a long struggle ;)

i am using wordpress for my blog, and will do url rewriting easily,
i just want to know should i have to use 301 permanent redirection so that i will not get the 404 page not found error for my old pages??

share|improve this question
add comment

marked as duplicate by paulmorriss Feb 6 '13 at 10:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 3 down vote accepted

Yes, you should use a 301 Redirect if the pages are going to move to the new URL structure permanently. The new structure is an improvement in terms of readability also.

share|improve this answer
    
i have get the PR to my site; is that re-writing effect on my website PR? –  jogesh_pi Feb 5 '13 at 11:03
    
For PR (I am presuming you are talking about Google Page Rank here) this is the advised way to redirect pages. See support.google.com/webmasters/bin/… for the full write up from Google. –  joesk Feb 5 '13 at 11:39
    
thanks for your :) –  jogesh_pi Feb 5 '13 at 11:51
    
@webomnizz A 301 redirect does pass PageRank, however, it does not necessarily pass it all (according to Matt Cutts, Google). But as joesk states, a 301 is the tool to use here. (And PR isn't everything.) –  w3d Feb 5 '13 at 20:51
    
@w3d one last think i want to know, for how long i have to set the 301 redirection in my .htaccess file? until not cached from google?? or till the domain exist? –  jogesh_pi Feb 6 '13 at 4:53
show 2 more comments

In terms of SEO, mod_rewrite can be helpful if you have complex URLs that contain more than 2 parameters. In other words, if one of your dynamic URLs is accessed, the mechanism behind mod_rewrite will "translate" it into a shorter, friendlier, static-looking URL.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.