|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Posts: n/a
|
Hiding URL, except home page
I've been trying to find a way to hide the long URL's to what will ultimately be my website. I've searched a dozen different forums and cannot find what I'm looking for.
Specifically, if someone types in www.yourpage.com, that's the only thing I ever want to have in the address bar. (I don't care if the links show in the bottom mouseover area)... http://www.yourpage.com/osCommerce/catalog/default.php is just too long a home page, and the SSL pages don't even have yourpage.com shown in the URL (powweb.com:####). I've seen a couple of references about $_SERVER['PHP_SELF']; but I'm not a programmer, and it looks like a rough learning curve. I am not even sure if it applies to hiding URL's... If it is though, is the header.php file a candidate to enter this code in since it's part of every page? Please be specific should you answer... typing "put it your XXX.php file" doesn't tell me much. Thanks. |
|
|
#2 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
I'm going to discourage you from this approach - as a user, I hate it when sites do that and it tends to make me go elsewhere. Also, you can't have the page title change as your site is navigated.
Other disadvantages are that some browsers won't be able to navigate this and some search engines can't follow the links. The only way I know to do this is with a hidden frame like this: Code:
BTW, you don't have to have osCommerce in your path and don't have to explicitly specify default.php either.
__________________
Steve |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|