louis_coetzee Posted March 13, 2009 Share Posted March 13, 2009 Hi guys, Okay what I want to know. I am busy developing a website, I have a index.php which is my template and I load all my pages "content" into this page by using GET. I see that many people use folders for example: http://www.whatever.com/members http://www.whatever.com/login http://www.whatever.com/register etc. OBVIOUSLY this is much neater. If you do this, how is it possible to to it without having to go and for example put the same banner in each index file. I have it setup once and I don't worry about it again, coz stuff stays the same. the new stuff just loads in to <div id="content"></div> Hope it's possible to understand what I want to know. Quote Link to comment https://forums.phpfreaks.com/topic/149217-template-for-content-loading/ Share on other sites More sharing options...
Festy Posted March 13, 2009 Share Posted March 13, 2009 Hi guys, Okay what I want to know. I am busy developing a website, I have a index.php which is my template and I load all my pages "content" into this page by using GET. I see that many people use folders for example: http://www.whatever.com/members http://www.whatever.com/login http://www.whatever.com/register etc. OBVIOUSLY this is much neater. You either create seperate directories like 'members', 'login', 'register' or you do it using mod rewrite. There are several tutorials on mod rewrite available on Internet. Quote Link to comment https://forums.phpfreaks.com/topic/149217-template-for-content-loading/#findComment-783603 Share on other sites More sharing options...
ram4nd Posted March 13, 2009 Share Posted March 13, 2009 or use iframes Quote Link to comment https://forums.phpfreaks.com/topic/149217-template-for-content-loading/#findComment-783613 Share on other sites More sharing options...
JonnoTheDev Posted March 13, 2009 Share Posted March 13, 2009 or use iframes Never! Not if you want to rank your website on search engines. You are looking for a mod rewrite that will rewrite: http://www.xyz.com/index.php?page=contact to http://www.xyz.com/contact Check the mod rewrite boards. This is simple. Quote Link to comment https://forums.phpfreaks.com/topic/149217-template-for-content-loading/#findComment-783696 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.