How to make www. mandatory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LilPimpnRapper
    Senior Member
    • Aug 2003
    • 164
    • 4.0.0

    [Forum] How to make www. mandatory

    Hey I am trying to make it so when you type in orlandomagicfans.net/forums it turns into http://www.orlandomagicfans.net/forums with the www.

    I've been having lots of problems with facebook connect and I am starting to think that it works when the site is www. but everytime it goes without the www. - it doesn't work. So, I want to make it so the www is always there.

    I just edited my main joomla page so it is like this - the user who helped me told me it good for SEO too. It was called SEO Canonicalisation and there was a joomla plugin for it, and it worked great. Now i want to do it on my forums too.
  • Deadly Stream
    Member
    • Mar 2008
    • 82

    #2
    add this to your .htaccess in the root of your site, or create a .htaccess if there isn't one.

    Code:
    RewriteCond %{HTTP_HOST} ^orlandomagicfans\.net$
    RewriteRule ^(.*)$ http://www.orlandomagicfans.net/$1 [R=301,L]
    Epic sunburn!

    Comment

    Related Topics

    Collapse

    Working...