Osclass forums

Development => Development => Topic started by: sigmoun on November 27, 2010, 04:48:48 pm

Title: SEO - Redirect old item pages when rewrite activated.
Post by: sigmoun 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.
Title: Re: SEO - Redirect old item pages when rewrite activated.
Post by: _CONEJO 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!