Forum Moderators: mack
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
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