Unstoppable Domains

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

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
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
•••
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
•••
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
•••
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
•••
...or just turn domain masking on at your registrar.
 
0
•••
domain masking is the same thing as the frame method. take a look at the source code of any masked domain.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back