2

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??

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.

3

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.

  • 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
  • @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.) – MrWhite 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
  • @webomnizz: For as long as possible. After a month or so Google should have updated its index, but for all the other (back)links to your site that don't get automatically updated the redirections will need to stay in place. – MrWhite Feb 6 '13 at 9:24
0

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.

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