Results 1 to 3 of 3

Thread: www. vs non-www.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    www. vs non-www.

    I created a virtual directory and pointed the site/URL to the directory that the page should be running at. If I go to browser and type http://www.mytestwebsite.com/about.html it works, but if I type http://mytestwebsite.com/about.html, it says page cannot be displayed.

    So it seems to me it's the matter of whether I put in www. or not.

    Is there a way I can fix this using virtual directory/anything that may help?

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: www. vs non-www.

    Not sure if this would help or not?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: www. vs non-www.

    https://httpd.apache.org/docs/2.2/vh...ame-based.html

    If you have ServerName inside the <VirtualHost> directive set to www.example.com then you would set ServerAlias to just example.com, so it looks for both the www and the non-www domain names when deciding which virtual host to send the request to.

    For IIS, you would set the appropriate Host Headers on the Site in IIS Manager to check for www.example.com and also example.com on port 80 (and 443 if using ssl).
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width