Jump to content

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.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.