Mod_Rewrite help needed

Discussion in 'Apache' started by kingcaw, Aug 2, 2007.

  1. #1
    I'm hoping someone with more expertise in this area will be able to help.

    A client of mine recently installed on of my scripts in their server, however mod_rewrites simply do not appear to be working.

    Hundreds of other people have bought and use the script which includes the standard .htaccess file, and none have these problems - so it must be something specific to this guys setup that isn't sitting well with the rewrite rules.

    Here is a snippet of the code:
    I've tried it with and without +FollowSymlinks, as well as with and without a RewriteBase; but no joy.

    As you'll probably have guessed, the above rule should rewrite www.domain.com/terms.php to www.domain.com/terms - however it doesn't, instead bringing up a 404 error.

    The phpinfo for this can be found here

    I'm sure i'm just missing something glaringly obvious, but hopefully one of you guys can help - it'd be greatly appreciated!
     
    kingcaw, Aug 2, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    It's doing the other way around at the moment (but I think the other way is what you intended to write, ie. www.domain.com/terms to www.domain.com/terms.php

    http://www.yarasool.info/ does not seem to be working so I can't see the problem for myself.

    Also, make a .htaccess file with just an "x"
    x
    Code (markup):
    And let me know if there is a 500 error or not (last person I helped with a similar problem had an issue where .htaccess was not being processed)
     
    krt, Aug 2, 2007 IP
  3. kingcaw

    kingcaw Peon

    Messages:
    1,079
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes that is what I meant to type... i've changed the htaccess as suggested and it hasn't actually made a difference - no 500 messages or anything; the site just loads as it was before.
     
    kingcaw, Aug 2, 2007 IP
  4. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #4
    It seems .htaccess is not being processed. Either there is a .htaccess in a higher directory disabling overrides or this is done in the Apache conf files of the server. Perhaps try contacting the web host to see if they allow .htaccess files?
     
    krt, Aug 2, 2007 IP