WWW for top dir only?

Discussion in 'Apache' started by chrissatchwell, Feb 15, 2007.

  1. #1
    Hi guys,

    I had the rewrite rule on my site so people and bots go to pages with WWW, this is the code Im talking about:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^SITENAME.co.uk [NC]
    RewriteRule ^(.*)$ http://www.SITENAME.co.uk/$1 [L,R=301]
    Code (markup):
    Ive recently installed a script in sub dir but the rewrite is causing the script to mess up and not function properly.

    Anyone know of a code I can put in so that only the main dir goes to WWW, but all sub-dirs dont have any rule. Ive searched for ages but cant find one.

    Cheers.
     
    chrissatchwell, Feb 15, 2007 IP
  2. chrissatchwell

    chrissatchwell Peon

    Messages:
    335
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    4 Days and Zero replys, I take it no-one knows then! :D
     
    chrissatchwell, Feb 19, 2007 IP
  3. eXe

    eXe Notable Member

    Messages:
    4,643
    Likes Received:
    248
    Best Answers:
    0
    Trophy Points:
    285