Forum Moderators: phranque

Message Too Old, No Replies

server always strips www when in subdirectories

         

noyearzero

2:49 am on Aug 26, 2008 (gmt 0)

10+ Year Member



hi guys,
i have a server running apache 1.something. say a user types in www.example.com they get http://www.example.com. great so far, but when they type www.example.com/manager they get http://example.com/manager. this is bad because if there is a valid-user requirement for the folder they have to enter a username and password for both www.example.com and example.com. it has other bad side effects too.

nothing in the .htaccess file would do this and i can't find anything in the servers httpd.conf file either. any ideas?

jdMorgan

5:48 pm on Aug 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> nothing in the .htaccess file would do this and i can't find anything in the servers httpd.conf file either.

If that is strictly true, then perhaps "manager" is a script? And if so, then perhaps it's got the non-www preference coded into it.

Another possibility is that UseCanonicalName is set to "on" and the ServerName is non-www (See httpd.conf and other config files).

Jim

noyearzero

7:30 pm on Aug 27, 2008 (gmt 0)

10+ Year Member



i think UseCanonicalName is exactly what the problem was. because it also changed parked names to the servername.

Thanks a bunch

g1smd

9:23 pm on Aug 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Now that you have changed things, do both the www and non-www URLs work and both deliver content?