NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Any Code/Script To "Hide" Page Location In Browser?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-11-2006, 06:49 PM THREAD STARTER               #1 (permalink)
Electrifying Guy
 
Dave Zan's Avatar
Join Date: Sep 2003
Posts: 4,749
Dave Zan has a reputation beyond reputeDave Zan has a reputation beyond reputeDave Zan has a reputation beyond reputeDave Zan has a reputation beyond reputeDave Zan has a reputation beyond reputeDave Zan has a reputation beyond reputeDave Zan has a reputation beyond reputeDave Zan has a reputation beyond reputeDave Zan has a reputation beyond reputeDave Zan has a reputation beyond reputeDave Zan has a reputation beyond repute
 




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


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?
__________________
Vidi, Vici, Veni!
Follow My Tweets | Check My Blog
Dave Zan is offline  
Old 05-11-2006, 07:38 PM   #2 (permalink)
NamePros Regular
 
Tree's Avatar
Join Date: Feb 2006
Location: Atlanta, GA, USA
Posts: 335
Tree will become famous soon enoughTree will become famous soon enough
 



If you do a PHP include and use POST variables or cookies to navigate, I guess it's possible. Probably an easier way though.
Tree is offline  
Old 05-11-2006, 09:22 PM   #3 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
Originally Posted by Tree
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

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.
????: NamePros.com http://www.namepros.com/programming/196428-any-code-script-hide-page-location.html
All the best, Rhett.
BillyConnite is offline  
Old 05-12-2006, 03:09 AM   #4 (permalink)
I'll do it
 
-Nick-'s Avatar
Join Date: Dec 2005
Location: India
Posts: 6,927
-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness
 


Member of the Month
September 2007
Adoption
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.
-Nick- is offline  
Old 05-12-2006, 10:52 AM   #5 (permalink)
NamePros Member
Join Date: Apr 2005
Posts: 117
mikesherov will become famous soon enoughmikesherov will become famous soon enough
 



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>
mikesherov is offline  
Old 05-12-2006, 11:06 AM   #6 (permalink)
Senior Member
 
Shorty's Avatar
Join Date: Sep 2005
Location: England
Posts: 1,034
Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice
 



...or just turn domain masking on at your registrar.
Shorty is offline  
Old 05-12-2006, 12:22 PM   #7 (permalink)
NamePros Member
Join Date: Apr 2005
Posts: 117
mikesherov will become famous soon enoughmikesherov will become famous soon enough
 



domain masking is the same thing as the frame method. take a look at the source code of any masked domain.
mikesherov is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:09 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger