forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: vfh on February 21, 2011, 06:11:29 pm

Title: Unwanted automatic redirection without trailing slash
Post by: vfh on February 21, 2011, 06:11:29 pm
Gallery: http://theflooringmill.com/coppermine/ (http://theflooringmill.com/coppermine/)
Version: 1.5.12

Coppermine was installed successfully, but http://theflooringmill.com/coppermine (http://theflooringmill.com/coppermine) (without the trailing slash) gets automatically redirected to http://theflooringmill.com/flooringmill.com/coppermine/ (http://theflooringmill.com/flooringmill.com/coppermine/) (note the extra directory).  http://theflooringmill.com/coppermine/ (http://theflooringmill.com/coppermine/) (with the trailing slash) stays the same, as desired.

I've looked around, but couldn't figure out why it's getting redirected.  I've tried the following things:

I successfully created a redirection in my web.config file that manually redirects http://theflooringmill.com/coppermine (http://theflooringmill.com/coppermine) to http://theflooringmill.com/coppermine/ (http://theflooringmill.com/coppermine/) (which I have disabled so you can see the unwanted redirection), but would prefer change whatever setting is causing the undesired effect in the first place since there's obviously some kind of redirection going on.

Help and advice on this would be greatly appreciated.
Title: Re: Unwanted automatic redirection without trailing slash
Post by: Nibbler on February 21, 2011, 06:57:19 pm
Coppermine doesn't do that. It's something else you have set up.
Title: Re: Unwanted automatic redirection without trailing slash
Post by: vfh on February 24, 2011, 01:20:47 pm
Thanks.  I talked to my hosting provider, and will post their answer for completeness since it doesn't seem uncommon.

Apparently "the behavior is unavoidable and is caused by how IIS works with alias domains in a shared environment."  For full details: http://community.godaddy.com/groups/go-daddy-hosting-connection/forum/topic/coppermine-install-undesired-automatic-redirection/ (http://community.godaddy.com/groups/go-daddy-hosting-connection/forum/topic/coppermine-install-undesired-automatic-redirection/)