ModRewrite for Lighttpd? |
[eluser]Philip Pryce[/eluser]
Does anyone have a clue how to make ModRewrite work in Lighttpd, i've got the module installed, but i'm not sure how to layout the .htaccess file. I'm also not the greatest with Regular Expressions, so if someone could translate the default Apache 2 one into a Lighttpd one that would be amazing. Thanks, Phil
[eluser]Tom Glover[/eluser]
I think they are the same, as far as I know Lighttpd can read Apache .htaccess and certain other modules.
[eluser]Philip Pryce[/eluser]
it seems it isnt the same, i've tried it and it doesnt seem to work. any one got any ideas?
[eluser]Philip Pryce[/eluser]
right well i've translated the main rules into a lighttpd form, Code: url.rewrite = ( "^(.*)$" => "/index.php/$1" )
[eluser]Michael Wales[/eluser]
Here is a Google Cache (yay) copy of an article on my blog before it bit the dust: Running a CodeIgniter Application on Lighttpd Basically, you force all 404's to go to your apps index.php which will then route it properly. CI tosses headers for real-world 404's so you don't have to worry about Google or any other search engine penalizing you for it either.
[eluser]Philip Pryce[/eluser]
thank you so much, thats a vey concise and informative blog entry. thanks. |
Welcome Guest, Not a member yet? Register Sign In |