i asked some and i got this in response but i need more explanation and help that in what page i should insert what code to make this system work.
These are different codes, tell me which one will help and please do explain how to install.
It would appear that what you're trying to do is place your home content into the layout of your index (so you can keep you headers etc).
There are two ways :
1) Create all the content again in the home page. However, this means you are replicating your content, which is NOT what you are attempting to do.
2) Seperate everything into its own php files and then call them into your home page and index page.
// CONTENT FOR HOME PAGE HERE...
The above is a VERY simple way of performing what you want. You do NOT need to redirect your browser. Why are you attempting to redirect? You are looking to replicate something very similar to Master Pages (in ASP.NET).