I wana to know some thing here.
I have a site where there are a lot of pages and directories.
For example site name is www.site.com (this is the index page).
Now if the user go to another pages for example click on the about link. How can i do this that the
site name appear in address bar remain the same as www.site.com not www.site.com/about.php
and so on for all pages.
Main reason is that site.com could actually be site2.com and you dont want the user to know they have been redirected to another site.
I guess you could probably simulate it with a proxy script as rajug was hinting at with the AJAX solution. Frames are certainly the easiest method though.
Why? what possible reason for that? if you don't want them to know they redirected to another site then don't redirect in the first place. If you are trying to do something sleazy and low maybe you should just get off the internet?
Logic without the fatal effects.
All code snippets are licensed under WTFPL.
Alot of reasons for using iframes, or frames is to help with page navigation, however alot of times people get 'locked' in frames and are unable to get out.. or attempting to bookmark and only bookmark partial pages.
Either way, I think it would be best to use a full url for your cause, as logic_earth has stated above.