[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 05-11-2006, 05:49 PM   #1 (permalink)
Electrifying Guy

Forum Moderator

 
Dave Zan's Avatar
 
Join Date: Sep 2003
Posts: 4,232
2,029.65 NP$ (Donate)

Dave Zan has much to be proud ofDave Zan has much to be proud ofDave Zan has much to be proud ofDave Zan has much to be proud ofDave Zan has much to be proud ofDave Zan has much to be proud ofDave Zan has much to be proud ofDave Zan has much to be proud ofDave Zan has much to be proud ofDave Zan has much to be proud of


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 Me On Twitter...
Dave Zan is offline  
Old 05-11-2006, 06:38 PM   #2 (permalink)
NamePros Regular
 
Tree's Avatar
 
Join Date: Feb 2006
Location: Atlanta, GA, USA
Posts: 335
13.25 NP$ (Donate)

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, 08:22 PM   #3 (permalink)
 
BillyConnite's Avatar
 
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,107
47.00 NP$ (Donate)

BillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant future

Wildlife Parkinson's Disease Parkinson's Disease
Quote:
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.
All the best, Rhett.
__________________
<?php if(1===1){ $computer="fine."; }else{ $computer="broken."; } echo "Your computer is ".$computer; ?>
BillyConnite is offline  
Old 05-12-2006, 02:09 AM   #4 (permalink)
I'll do it

Technical Services

 
-Nick-'s Avatar
 
Join Date: Dec 2005
Location: India
Posts: 6,434
5,169.80 NP$ (Donate)

-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute

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, 09:52 AM   #5 (permalink)
NamePros Member
 
Join Date: Apr 2005
Posts: 116
134.00 NP$ (Donate)

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, 10:06 AM   #6 (permalink)
Senior Member
 
Shorty's Avatar
 
Join Date: Sep 2005
Location: England
Posts: 1,035
102.05 NP$ (Donate)

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, 11:22 AM   #7 (permalink)
NamePros Member
 
Join Date: Apr 2005
Posts: 116
134.00 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:57 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85