Advertisement:

Author Topic: SEO - Redirect old item pages when rewrite activated.  (Read 1933 times)

sigmoun

  • Newbie
  • *
  • Posts: 5
SEO - Redirect old item pages when rewrite activated.
« on: November 27, 2010, 04:48:48 pm »
Hello,

a suggest like that :

it would be great to add a 301 redirect of pages like :

-http://www.placepublique.be/item.php?id=1

to it rewrited url if rewriting is activaded, like that google can directly find the new & definitive url.

i'll try to add this function to my version asap, i'll share the code, but it's not really difficult to add.

( if($page == 'itemp.php') { if(isset(get_id) && !empty(get_id)) { $url_rewrited = $site.'/'.url_rewrited(); header($url_rewrited); }}

this can also help preventing hacks & blackhat seo with always generating the should have url & redirect to it if she's different.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: SEO - Redirect old item pages when rewrite activated.
« Reply #1 on: November 27, 2010, 07:42:48 pm »
Hi Sigmoun,

That's a great idea. We're discussing a redirection system to be include in next releases, we'll include your suggesstion in our plans.

Thanks for sharing the code!