plznty Posted February 22, 2010 Share Posted February 22, 2010 I use the same template for every page, i dont know what the best method of getting the content data for terms of using good url addresses. Link to comment https://forums.phpfreaks.com/topic/192908-best-method-for-dynamic-content/ Share on other sites More sharing options...
GingerRobot Posted February 22, 2010 Share Posted February 22, 2010 Your question isn't very clear. Are you concerned about unique/'pretty' URLs for SEO reasons? If you're running an apache server, mod_rewrite is your friend. Link to comment https://forums.phpfreaks.com/topic/192908-best-method-for-dynamic-content/#findComment-1016026 Share on other sites More sharing options...
Rustywolf Posted February 22, 2010 Share Posted February 22, 2010 use a get variable and mod_rewrite aka site.com/page/ would be site.com/index.php?page=page RewriteEngine on RewriteRule ^(.+)/$ index.php?page=$1 [L] and $page = $_GET['page'] . ".php"; Link to comment https://forums.phpfreaks.com/topic/192908-best-method-for-dynamic-content/#findComment-1016031 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.