Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-28-2002, 09:34 PM   PM User | #1
thegitksan
New to the CF scene

 
Join Date: Jul 2002
Location: Canada
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
thegitksan is an unknown quantity at this point
address bar URL format

Hi all. Here's an interesting challenge. I am trying to force the URL displayed in any visitor's browser to display without the 'WWW' leading.

My new domain name is 'athyrium.ca', and I'd like it to display as 'http://athyrium.ca', instead of the more common display of 'http://www.athyrium.ca'.

My web hosts (doteasy.com) provided a clue, something to do with framesets and a 'cloaked page', but in order to maintain lower costs, their system is not really set up for a lot of coding help.

So, any takers? I know it can be done - I've seen it at lots of web sites already, so there must be a solution.

Regards,
thegitksan
thegitksan is offline   Reply With Quote
Old 07-29-2002, 04:59 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
There's no way you can alter the contents of the address bar from javascript short of navigating to another web page.

This may be more a function of your web server accepting the address without the leading WWW. When I ping your address with or without the WWW I get the same IP address.

To not show it for people who enter it you'd have to redirect them to the page sans the WWW.

This of course begs the question of why it this even remotely important .
Roy Sinclair is offline   Reply With Quote
Old 07-29-2002, 05:16 PM   PM User | #3
thegitksan
New to the CF scene

 
Join Date: Jul 2002
Location: Canada
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
thegitksan is an unknown quantity at this point
Thanks for the reply

Thanks for the reply. I suspected as much, after a lot of digging around, that it is probably a server-based setting, and therefore out of my control.

And sorry, it actually WAS important to me, otherwise I'd have never asked the question. I'm not a web programmer by trade - I'm a GIS mapper, which is a technical profession easily as complex as web programming is. I'm hardly a dummy, but it DOES take time to learn new things and so the question was not a stupid question.

Thanks for describing how you checked the site with ping. I hadn't thought of that. Now I have another method.

Regards,
Russell
thegitksan is offline   Reply With Quote
Old 07-29-2002, 05:28 PM   PM User | #4
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
You could probably acheive this using mod_rewrite in apache. Check out http://httpd.apache.org/docs/mod/mod_rewrite.html or ask in the general server-side forum
brothercake is offline   Reply With Quote
Old 07-30-2002, 05:03 AM   PM User | #5
thegitksan
New to the CF scene

 
Join Date: Jul 2002
Location: Canada
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
thegitksan is an unknown quantity at this point
Smile Apache mod_rewrites

Yes, again, this confirms whatI have been suspecting. thanks for confirming it for me, that some setting within the server would be where I'd look.

Couldn't sleep last night and so I went digging again, and after doing a lot of search variants along the line of 'url format', 'location bar format', 'url address' etc. etc., I did suddenly get a bazillion results popping out for mod_rewrites.

Which, when I looked a little deeper, seemed promising. I've got my own Linux PC here at home, my 2nd machine, with apache installed but not configured. Perhaps this will be a good place for me to dig a little more, in the docs for Apache.
Might also try to re-create the problem - if I can do that, I'll know what caused it.

Perhaps between your suggestion for where to look, my own search results (Copernic Pro, an excellent meta-crawler), and my Linux box, I can find the solution and then request my host run the re-write.

Thanks for the suggestions, guys, I do appreciate your taking the time. And please forgive my earlier "snippy" retort. I'm arrogant enough in my own profession, lord knows, so a little well-earned arrogance in somebody else doesn't bother me very long.

Thanks again!
Regards,
Russell
thegitksan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:13 AM.


Advertisement
Log in to turn off these ads.