Jump to content

Template for Content loading


louis_coetzee

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/149217-template-for-content-loading/
Share on other sites

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.

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.