Forum Moderators: phranque
I have a good bit of experience with the Windows platform as well as formal schooling in DOS programming (Basic and the older hex programming Texas Instruments used).
The documentation with Apache is intended for experienced Apache users.
I am using version 2.0.54.
I have been able to get all the web sites working but still have the problem of not being able to get the server to recognize the URL with the www. in front of it.
The server will use the address of xyz.com but will not use the address of www.xyz.com. When the www. is used I get the default web site.
Any ideas?
Thanks
Phil
Welcome to WebmasterWorld!
Do you have a ServerAlias [httpd.apache.org] directive for www.example.com, in addition to the ServerName directive for example.com?
Jim
I found the problem. Section 2 under “UseCononicalName” must be turned on. Then you have to Make 2 <VirtualHost *:80> entries for the same web site. They are identical except for the www. in front of the site name.
Thanks again for your help.
Phil
[edited by: jdMorgan at 2:08 pm (utc) on April 30, 2005]
[edit reason] No sigs, please. See TOS. [/edit]
RewriteRule ^somestuff\.html$ /morestuff.php? [L]
The ? followed by nothing should solve your problem if it is what I think you are asking.
Hope this helps.
Justin