|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
hiding url
Hello,
How can I keep one url on the browser's navigation bar while visiting different sections of my site? For instance if the main url to my site were URL and I would go to URL while I'm on page1.php I would like the browser's navigation bar to keep displaying URL as the url. I don't know if this can be done with the .htaccess. Thanks. |
|
#2
|
|||
|
|||
|
you could use the header function, and create the fake url file, and redirect it to the proper page, or you could use javascript and mask the url that is displayed in the browser
|
|
#3
|
|||
|
|||
|
or you could use frames <- simple but good
![]() |
|
#4
|
||||
|
||||
|
Quote:
How would you go about creating a fake surl with a header function?
__________________
CHornJr "One day I'll know what I am doing" ![]() My Blog Suanhacky Lodge #49 Rebel Squadrons |
|
#5
|
|||
|
|||
|
Or you could do something like this
Code:
<?
$page = $_REQUEST['p'];
switch($page) {
case 'news':
include('news_page.php');
break;
case 'foo':
include('foo_page.php');
break;
default:
include('main_page.php');
break;
}
?>
make this your index.php page then all the links within your site would be like http://mydomain.com/index.php?p=news |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > hiding url |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|