Forum Moderators: phranque

Message Too Old, No Replies

Trailing slash problem on Virtual Hosts

Problems with redirecting folders without trailing slash on Virtual Host

         

aksana

6:57 pm on Sep 24, 2008 (gmt 0)

10+ Year Member



Hello, I've been trying to find a solution of my problem for several weeks, but really tired, therefore I ask your help.

My problem is the following:
I have a main site http://www.example.com, I have virtual hosts such as:
http://de.example.com, http://it.example.com and etc.

When I enter http://de.example.com/folder, I'm redirected to http://example.com/folder/, but I need to be redirected to http://de.example.com/folder/.

The "folder" does not exist in /de/ folder.

But this url http://de.example.com/folder/ (with slash) works without any problems, and opens "folder", but under the url http://de.example.com/folder/, that is ok.

Thanks for your time and for your help.

[edited by: jdMorgan at 8:34 pm (utc) on Sep. 24, 2008]
[edit reason] Please use example.com [/edit]

jdMorgan

8:35 pm on Sep 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is the result of mod_dir, and the server being configured with "UseCanonicalName on". Set UseCanonicalName to "off" or ask your host to do this.

Jim

aksana

9:05 pm on Sep 24, 2008 (gmt 0)

10+ Year Member



Thanks, today I'll contact my hosting provider.