.htaccess problem with html files

Discussion in 'Co-op Advertising Network' started by tulip4heaven, Mar 15, 2006.

  1. #1
    Hi Guys

    I have a problem with setup when i add the following line to my .htaccess

    the page shows internal server error
    while php pages are still showing ads

    my current configuration of .htaccess is follow, i have sames configuration on 6 sites and i want to use co-op on all sites

    # Begin search engine friendly links code
    RewriteEngine On
    #RewriteBase /
    RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
    RewriteRule ^lightbox\.([0-9]+)\.htm$ lightbox.php?page=$1&%{QUERY_STRING}

    RewriteRule ^search\.htm$ search.php?%{QUERY_STRING}
    RewriteRule ^search\.([0-9]+)\.htm$ search.php?page=$1&%{QUERY_STRING}

    RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}
    RewriteRule ^cat([0-9]+)\.([0-9]+)\.htm$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^cat([0-9]+)\.htm$ categories.php?cat_id=$1&%{QUERY_STRING}

    RewriteRule ^img([0-9]+)\.htm$ details.php?image_id=$1&%{QUERY_STRING}
    RewriteRule ^img([0-9]+)\.([a-zA-Z0-9]+)\.htm$ details.php?image_id=$1&mode=$2&%{QUERY_STRING}

    RewriteRule ^postcard([a-zA-Z0-9]+)\.htm$ postcards.php?postcard_id=$1&%{QUERY_STRING}
    RewriteRule ^postcard\.img([0-9]+)\.htm$ postcards.php?image_id=$1&%{QUERY_STRING}

    # End search engine friendly links code
    #Mod_bmollet : category name in URL
    RewriteRule ^cat-(.*)-([0-9]+).htm categories.php?cat_id=$2&%{QUERY_STRING}
    #Mod_bmollet : Image name in URL
    RewriteRule ^img-(.*)-([0-9]+).htm details.php?image_id=$2&%{QUERY_STRING}

    #Mod_bmollet : This is to make search function work ( redirect links from search results )
    RewriteRule ^img([0-9]+).search.htm details.php?image_id=$1&%{QUERY_STRING}



    Thnaks guys for your help in advance

    Tulip
     
    tulip4heaven, Mar 15, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Some apache versions need
    Options +FollowSymLinks
    RewriteEngine on

    and some need
    RewriteEngine on

    and some need
    Options +FollowSymLinks

    Try altering the code to see what works.:)
     
    mad4, Mar 15, 2006 IP
  3. tulip4heaven

    tulip4heaven Well-Known Member

    Messages:
    2,774
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #3
    not working anyone
    :(
     
    tulip4heaven, Mar 15, 2006 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The only thing is to remove parts of the file bit by bit to track down where the error is. I can't spot anything obvious - sorry.
     
    mad4, Mar 15, 2006 IP
  5. tulip4heaven

    tulip4heaven Well-Known Member

    Messages:
    2,774
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #5
    I need help :(
     
    tulip4heaven, Mar 15, 2006 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    Talk to your server admin.
     
    digitalpoint, Mar 15, 2006 IP