rkstevens Posted April 14, 2008 Share Posted April 14, 2008 I am in the process of converting a static-design website to a dynamic one. The static site has over 400 pages of content, and has grown past the point of being able to manage it properly. The conversion to a dynamic site should change this, making my life somewhat easier. My concern is this: How do I deal with those 400+ pages being indexed on search engines without losing my page rankings in the conversion process? Even if I implement a 'friendly-url' type of handler in my code, the result still will not be the same as the previous static url. Thanks for your suggestions. Quote Link to comment https://forums.phpfreaks.com/topic/100977-solved-converting-static-website-to-dynamic-one/ Share on other sites More sharing options...
rahul.pache Posted April 14, 2008 Share Posted April 14, 2008 After ur dynamic site is created. Let your static pages remain same. Just clear its content and add a redirect PHP script to redirect it to pages's current location. Like Product1Page [Old page] => products.php?q=pro1 [new page] Here is the old page --------------------------------------------------------- /// Remove all its content // and add <?php header("Location :products.php?q=pro1"); ?> --------------------------------------------------------- Quote Link to comment https://forums.phpfreaks.com/topic/100977-solved-converting-static-website-to-dynamic-one/#findComment-516394 Share on other sites More sharing options...
laffin Posted April 14, 2008 Share Posted April 14, 2008 Look into php's pathinfo system. if apache has pathinfo enabled u can have a somewhat static url, when actually the url is a php script with parameters in the url without the parameted i.e: http://my.site.com/articles.php?id=5 with path info u can transform it into http://my.site.com/articles.php/5/ A popular system which uses this is cake php Quote Link to comment https://forums.phpfreaks.com/topic/100977-solved-converting-static-website-to-dynamic-one/#findComment-516398 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.