URL Redirect URL Redirect
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

URL Redirect

Started by silencer1981, January 08, 2006, 01:56:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

silencer1981

I have installed coppermine fine, with a few issues but I will get to those later. It seems that when a user goes to http://www.mydomain.com/gallery they are automaticaly re-directed to http://mydomain.com/gallery
I would really like that www. in there as I believe it is causeing problems with cookies and bridging with phpbb.

Thanks for your help

Joachim Müller

not related to coppermine, but to redirection (usually configured in the .htaccess file in the web root directory). For details, post actual links instead of dummy URLs.

Paver

This may also be due to your webhost or more specificially to your domain name setup (if you have that at a different company).  When you set up your domain, you can usually define whatever third-level domains (TLDs) you want including the popular 'www' or none in the case of 'yourdomain.com'.  For each, you can set up a different redirection or an IP address or a mail server or whatever.  If you haven't set this up yourself, maybe your webhost does this for you and they, be default, redirect all TLDs to 'yourdomain.com'.  I would think a good webhost would let you set up your domain manually if you wanted to and I would look there.

silencer1981

Ok well it appears my host either has no clue or doesnt care. This is the responce I got:

QuoteHello Brian,

This is unfortunate if this happens to you, but we do not have such automatic redirection. It may happen while configuring the gallery, some path was given wrong which is the cause behimd the problem.

Hope this will help you :-) Please feel free to get back to us for further assistance.

Have a nice day :-)

I have narrowed the problem down a little.

If you point to http://www.mydomain.com/gallery then it redirects to http://mydomain.com/gallery/

if I add the "/" at the end of gallery it works normally (keeps the www)

also, there are no htacess files on my server. This is disabled by default on my host. I have enabled them but no such change
Any idea's?

p.s. the reason I am not linking my real domain is it is adult in nature. I apologize if this is a problem.

Paver

The slash at the end of the URL is almost always due to the web server configuration, although you could use a .htaccess file as well.  For the apache web server, many people use the mod_dir module to automatically redirect directory URLs to the correct URL with the trailing slash.  But that shouldn't (I don't think) remove the third-level domain 'www'.  I checked it on my setup and that module merely redirects to the same TLD with a trailing slash.  Maybe your web host has a redirect for directories that uses a fixed domain name which is 'mydomain.com' - without the TLD, no matter what the requesting URL is.  Ideally, they should use the requesting URL and add the trailing slash onto that.

I would tell them that it has to be their web server setup since your redirect only happens for directories without the trailing slash, which is almost always a web-server configuration.