Mod rewrite on 1&1 host

Discussion in 'Programming' started by HuggyEssex, Sep 2, 2010.

  1. #1
    Hello,

    Come up with a very odd problem, I wrote a mod rewrite rule which works fine on my local and other server.

    I uploaded the clients site to their server and it's not working just giving me a 404, they used mod rewrite before so I know it's working on the server.

    I must be missing something that I need to add into the .htaccess to get it working on the server.

    Anyone had the same problem before? I'm will to pay for the solution.

    Kind regards,

    Glen
     
    HuggyEssex, Sep 2, 2010 IP
  2. omarabid

    omarabid Well-Known Member

    Messages:
    1,509
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    @HuggyEssex

    Can you post the htaccess code, this will help us a lot.
     
    omarabid, Sep 2, 2010 IP
  3. HuggyEssex

    HuggyEssex Member

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    45
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Options -MultiViews
    AddType text/x-server-parsed-html .shtml .html .htm
    RewriteEngine On

    RewriteRule ^case-([^.]+)$.php /casestudiesview.php?id=$1

    That's what I'm using this all worked fine on my local and other server, just not on the 1&1 hosting account.
     
    HuggyEssex, Sep 2, 2010 IP
  4. omarabid

    omarabid Well-Known Member

    Messages:
    1,509
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    have you tried omitting the first two lines. I'm more suspicious that they are causing some problems. The other lines seems fine for me.
     
    omarabid, Sep 2, 2010 IP