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.
Thanks in advance.
Everyone preaches against them, and it may kill your SEO, but Frames will do what you're describing.
Just Google "HTML Frame"
Originally Posted by Makdaddi
Yes either the HTML frame will be the solution. Also you can go for ajax too. I think you know what i mean.
I have to ask but why? What is wrong with haveing www.site.com/about.php it tells people where they are and is it a very important thing to know where you are.
better not be for security...
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?
Originally Posted by mrsmiley
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.