Forum Moderators: open
I've just created some php pages and sometimes when I browse to a url which has the 'www' in it, the browser address bar then takes it out. It's got me mystified but I'm sure there's a simple answer.
For example I go to 'http://www.mysite.com/photography' (the 'photography' folder has index.php in it) and the right page comes up but the address bar says 'http://mysite.com/photography/'
If I go to 'http://www.mysite.com/photography/' (with a / after 'photography') the browser leaves the 'www' in.
When you leave off the '/' the server will redirect to the "ServerName" defined for that vhost. It sounds like you have ServerName without the 'www' and a ServerAlias with.