Any Code/Script To "Hide" Page Location In Browser?

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

Dave_Z

Electrifying GuyTop Member
Impact
394
Next question: if I click on any link to my domain name's website, is there a
code/script that'll "retain" the domain name only without revealing what comes
after the .com part?

You know, I go to www.domain.com, on my website I click pictures. Rather
than my browser showing www.domain.com/pictures.htm, it'll retain only the
.com part without anything after it.

Is it possible to accomplish this effect?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
If you do a PHP include and use POST variables or cookies to navigate, I guess it's possible. Probably an easier way though.
 
0
Close
Tree said:
If you do a PHP include and use POST variables or cookies to navigate, I guess it's possible. Probably an easier way though.
What he said :D

But yer there's easier ways.

One way would be to use a frame, with the frame containing the website.

SO:

www.domain.com/index.html or www.domain.com (same thing) would be a frame page that contains the page you want, and any link inside the frame would only navigate in the frame, so every link would stay as www.domain.com in the browser url box.

The html would be:
Code:
<frameset rows="100%" frameborder="NO" border="0" framespacing="0">
<frame name="something" src="http://www.domain.com/page.html">
</frameset>
<noframes>
Your browser does not support frames
</noframes>
That's one way anyway.
All the best, Rhett.
 
0
Close
Just use Include tags in the index.php

If home is clicked then include home.php and if about is clicked then include about.php

It think this is the most easiest thing to do. let me know if you want any further guidance.
 
0
Close
Doing it the billy connite way is the easiest way to do it.
PHP includes and whatnot is overkill.

I also suppose you can do it using ajax.

<frameset rows="*,0" frameborder="NO" border="0" framespacing="0">
<frame name="something" src="http://www.domain.com/page.html">
<frame name="something2" src="anything">
</frameset>
<noframes>
Your browser does not support frames
</noframes>
 
0
Close
...or just turn domain masking on at your registrar.
 
0
Close
domain masking is the same thing as the frame method. take a look at the source code of any masked domain.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back