[Help] htaccess --> lighttpd

Discussion in 'Programming' started by Hipto, Nov 3, 2011.

  1. #1
    Hey guys, (1) how do i check if mod_rewrite is enabled/installed in my lighttpd server? If not, how do i enable it?

    (2) How do I add this htaccess code to lighttpd?

    RewriteBase /alt
    RewriteRule ^(.*)/(.*)/ index.php?file=$2
    Code (markup):
    Thanks alot
     
    Hipto, Nov 3, 2011 IP
  2. proactiv3

    proactiv3 Peon

    Messages:
    55
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    0
    #2
    (1) Check docs: redmine.lighttpd.net/wiki/lighttpd/Docs:Configuration

    (2) No .htaccess on lighthttpd. The developers considered .htaccess files unnecessary and to be a reason for the server to slow down (as each additional configuration file needs to be read by the server).

    You need to input the rules on your main configuration file. Docs: redmine.lighttpd.net/wiki/1/Docs:ModRewrite

    Take notice that on that page, it's specified that the url is rewritten before it is handled, so this change may need to have repercussions on your script.

    Good luck!
     
    proactiv3, Nov 5, 2011 IP
  3. Hipto

    Hipto Peon

    Messages:
    939
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    WTH. your post is useless :s
     
    Hipto, Nov 5, 2011 IP
  4. proactiv3

    proactiv3 Peon

    Messages:
    55
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    0
    #4
    How more explicit can I be? lol

    (1) Look for the modules on the lighthttpd configuration file. If you ask for the module to be loaded there, it's loaded or the lighthttpd's daemon won't start (an error will be shown at startup)...

    (2) You don't add .htaccess rules, because lighthttpd doesn't support .htaccess files nor their syntax. I've pointed out the right direction, use lighthttpd's mod_rewrite - check the module's documentation in order to learn how to configure the module.

    My post seemed pretty clear to me and I think it answers your questions. If you want me to configure your server for you I have an hourly rate for that, otherwise learn how to do it yourself (again, the answer is on the documentation provided on the post above).
     
    proactiv3, Nov 5, 2011 IP
  5. Hipto

    Hipto Peon

    Messages:
    939
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    lol no thanks. Someone helpful can show me the correct format of those code to be used in lighttpd
     
    Hipto, Nov 5, 2011 IP
  6. stevemack

    stevemack Peon

    Messages:
    136
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    shared services has automatically mod_rewrite enabled.
     
    stevemack, Nov 8, 2011 IP