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
(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!
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).