Results 1 to 5 of 5

Thread: .htaccess

  1. #1
    Senior Member Timmo's Avatar
    Join Date
    Oct 2008
    Location
    Forest of Dean
    Posts
    161
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .htaccess

    Just noticed that you havn't got a .htaccess file for web forwarding.

    http://graphicdesignforums.co.uk and http://www.graphicdesignforums.co.uk

    are classed as two different sites.

  2. #2
    Senior Member Pixels Ink's Avatar
    Join Date
    Mar 2008
    Location
    Dundee
    Posts
    728
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is that a bad thing? I haven't a clue about that kind of stuff :)

  3. #3
    Senior Member Timmo's Avatar
    Join Date
    Oct 2008
    Location
    Forest of Dean
    Posts
    161
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When google crawls sites it will look at http://graphicdesignforums.co.uk and http://www.graphicdesignforums.co.uk as two different websites and you can get marked down for it.

    Make a text file and save it as .htaccess with this inside it:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.graphicdesignforums\.co\.uk [nc]
    RewriteRule ^(.*)$ http://www.graphicdesignforums.co.uk/$1 [R=301,L]

  4. #4
    Senior Member Pixels Ink's Avatar
    Join Date
    Mar 2008
    Location
    Dundee
    Posts
    728
    Thanks
    0
    Thanked 0 Times in 0 Posts
    good to know that mate. :icon_thumbup:

  5. #5
    Administrator Boss Hog's Avatar
    Join Date
    Mar 2008
    Posts
    3,443
    Thanks
    65
    Thanked 30 Times in 28 Posts
    Cheers Timmo

    Meant to do that ages ago.

    Many thanks :icon_thumbup:

Similar Threads

  1. Joomla, intermittent 500 errors & .htaccess woes
    By leonforthewin in forum Website Design Forum:
    Replies: 9
    Last Post: 09-05-2011, 07:06 AM

Posting Permissions

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