How to Detect Wamp and Ignore Some htaccess lines

Discussion in 'Apache' started by Ceeyee, May 12, 2013.

  1. #1
    Hi,

    My linux host requires a few lines of codes in my .htaccess file to properly run my site.
    However, these few lines of codes are not supported by my local Wamp on Win7.


    Is there a way to add a "If Wamp Then not run these lines" in my htaccess file

    so that I don't have to manually change the .htaccess file before upload/downloading the site between the two systems?

    Thanks.
     
    Ceeyee, May 12, 2013 IP
  2. Ceeyee

    Ceeyee Greenhorn

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    Anyone can help?
    Thanks.
     
    Ceeyee, May 15, 2013 IP
  3. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #3
    Mhh... can you remove the .htaccess from your automated upload/download?

    Or, move the .htaccess outside your www folder (if possible). It should still work.
     
    GMF, May 16, 2013 IP