Reply
How to Hide the Server name on the url
Old 07-19-2007, 07:37 AM How to Hide the Server name on the url
Novice Talker

Posts: 8
Hi,

I have been working with an intranet site. The problem is when i roll over on any link it shows the url on the status bar with the server name like the one below.

://servername/subfolder name/file name.html

rather than

://domain name/subfolder name/file name.html.

Pls help me out.
Thanks.
sathishbabu is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 07-19-2007, 07:43 AM Re: How to Hide the Server name on the url
tripy's Avatar
Fetchez la vache!

Posts: 1,988
Name: Thierry
Location: In the void
And what is your problem with that?

It can be that the links are pointing to a relative location, eg:
Code:
herf="/folder/gallery.php"
rather than
Code:
href="http://domain.com/folder/gallery.php"
In that case, the browser add the current site name (or sever name) to complete the url
__________________
Listen to the ducky: "This is awesome!!!"

tripy is online now
Reply With Quote
View Public Profile
 
Old 07-23-2007, 04:07 AM Re: How to Hide the Server name on the url
Super Talker

Posts: 146
i think you can fix that with a file named .htaccess
archyboy is offline
Reply With Quote
View Public Profile
 
Old 07-23-2007, 05:21 AM Re: How to Hide the Server name on the url
HighVoltage123's Avatar
Ultra Talker

Posts: 263
I am curious so can you give a link?
HighVoltage123 is offline
Reply With Quote
View Public Profile Visit HighVoltage123's homepage!
 
Old 07-24-2007, 07:16 PM Re: How to Hide the Server name on the url
alecrust's Avatar
Average Talker

Posts: 27
Location: United Kingdom
If you don't want any link shown you can use a bit of JavaScript like I have on one of my sites Webhost Reviews.

The only code you need is this:
Code:
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
__________________
Webhost Reviews | My Personal Site
alecrust is offline
Reply With Quote
View Public Profile Visit alecrust's homepage!
 
Reply     « Reply to How to Hide the Server name on the url
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13101 seconds with 13 queries