stubarny Posted March 14, 2009 Share Posted March 14, 2009 Hi eveyone, I have a website with lots of factfiles - all have the same structure. The only difference is the text contained within each field of the factfiles. At the moment each factfile is hosted at "www.websitename.com/factfile.php?factfile_id=13421648452", where factfile_id tells factfile.php what content should be displayed. To improve the pages' positions in search engines I'd like to change the webaddress to "www.websitename.com/FACTFILE_NAME" So my questions are: 1. How do I make all the factfiles work from a single uploaded file? (there are over 400 factfiles and at present all factfiles run from "factfile.php") 2. When a user submits data via a webform to create a new factfile (this creates a new row in my database table) how can I automatically create a new webpage? - I don't want to be uploading a new file everytime a new factfile is setup. Thanks for your help! Regards, Stubarny Link to comment https://forums.phpfreaks.com/topic/149398-automating-the-creation-and-naming-of-webpages/ Share on other sites More sharing options...
GingerRobot Posted March 15, 2009 Share Posted March 15, 2009 Assuming you are using an apache server, you should take a look at rewriting your URLs with mod_rewrite Link to comment https://forums.phpfreaks.com/topic/149398-automating-the-creation-and-naming-of-webpages/#findComment-785381 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.