Dumb question time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • echostatic
    Junior Member
    • Apr 2004
    • 19

    Dumb question time

    How would I make http://phreque.com automatically add the www. to the address? (using a Security certificate and it needs to bet set properly to take full advantage, even for lazy typers like me )

    Thanks
    Jacob
  • james
    Senior Member
    • Mar 2004
    • 183

    #2
    Create a .htaccess file in /home/username/public_html/, and put this in it:

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^phreque.com [NC]
    RewriteRule ^(.*)$ http://www.phreque.com/$1 [L,R=301]
    That should route requests without www. to the www. url.

    James

    Comment

    • echostatic
      Junior Member
      • Apr 2004
      • 19

      #3
      Yarhar! That worked poifectly - thank you!!

      Jacob

      Comment

      • AndrewT
        Administrator
        • Mar 2004
        • 3653

        #4
        Thanks for posting that James! Another customer posted a ticket a little bit ago asking for the same thing and it was easy enough to just show them this thread

        Comment

        • james
          Senior Member
          • Mar 2004
          • 183

          #5
          No problem - glad I could help!

          Comment

          Working...