Forum Moderators: mack

Message Too Old, No Replies

www.mysite.com/ vs www.mysite.com

is that slash after the .com necessary?

         

Ed_Gibbon

4:04 pm on Jan 27, 2003 (gmt 0)

10+ Year Member



I just moved my site to a new host.

I have noticed that

www.mysite.com/

displays my homepage correctly, while

www.mysite.com

(without the slash after the .com) does not. Specifically, it displays the homepage without any images.

The host has an automatic hotlink protection feature. I just need to enter the domains where my site's images can be shown, and it serves them, but all other domains (hotlinkers) are not served. I think the problem above may be related to the hotlink protection. I tried to add both www.mysite.com/ and www.mysite.com to the list, but it automatically reduces the list to just www.mysite.com (no slash).

My questions:

First, www.mysite.com/ vs. www.mysite.com

Is this really a problem? Do many people see the www.mysite.com version? It seems that some browsers automatically add the / slash at the end and then the page is displayed correctly.

Second, is there any javascript that can look and see if the slash is missing, and if it is, then refresh the page with the www.mysite.com/ address. I don't think I want to add the META refresh to refresh the page every time it is loaded.

Thanks much

jdMorgan

6:30 pm on Jan 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ed_Gibbon,

You should get your hosting provider to fix this problem.

If a user requests http;//www.mydomain.com, the server should issue a redirect to http;//www.mydomain.com/

If this is done, then you won't have a problem with their hot-linking block function.

On Apache server, the module mod_dir is used to accomplish this redirect. If you are hosted on Apache, ask them to check to see that mod_dir is installed and configured properly.

Jim

Ed_Gibbon

3:00 pm on Jan 30, 2003 (gmt 0)

10+ Year Member



The problem fixed itself, or the host did something without my asking. It was just two days after I switched to the new host. Maybe something in their routines take 24-48 hours to set up the automatic re-directs.?