Page name (mod rewrite?)
Posted: Fri Jan 16, 2009 9:44 am
First of all, apologies if I could have chosen a better category for this post.
I'm currently rewriting and automating a website, written in PHP. At present the product pages are created by running a program that queries the database and creates a static page - e.g. green-widgets.php.
I want the pages to be dynamic, generated by lets say products.php, but for the resulting page name to match the existing page name so as not to lose any search engine presence. The existing page name is in the database.
Can this be achieved by re-writes? I have no knowledge of mod-rewrite, but I've read some of the basic documentation. What I don't understand is how to pass the page name value from the database to .htaccess, if that's how you do it.
Any help would be appreciated.
Thanks
I'm currently rewriting and automating a website, written in PHP. At present the product pages are created by running a program that queries the database and creates a static page - e.g. green-widgets.php.
I want the pages to be dynamic, generated by lets say products.php, but for the resulting page name to match the existing page name so as not to lose any search engine presence. The existing page name is in the database.
Can this be achieved by re-writes? I have no knowledge of mod-rewrite, but I've read some of the basic documentation. What I don't understand is how to pass the page name value from the database to .htaccess, if that's how you do it.
Any help would be appreciated.
Thanks