| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2006 Location: USA
Posts: 497
![]() ![]() | Converting .htaccess to lighttpd.conf I need some help converting this .htaccess file to lighttpd.conf. Can anyone help me out? Code: RewriteEngine On RewriteRule ^film/(.*).html$ /index.php?typ=films&ef=$1 [QSA] RewriteRule ^video/(.*).html$ /index.php?typ=videos&ef=$1 [QSA] |
| | |
| | #2 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,074
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | looking at the documentation located at Lighttpd - Docs:ModRewrite - lighty labs the following should be what you need: ????: NamePros.com http://www.namepros.com/programming/669586-converting-htaccess-to-lighttpd-conf.html Code: url.rewrite-once = ( "^film/(.*).html$" => "/index.php?typ=films&ef=$1" ) url.rewrite-once = ( "^video/(.*).html$" => "/index.php?typ=videos&ef=$1" )
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| | |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Mar 2006 Location: USA
Posts: 497
![]() ![]() | I tried the above code and although it makes complete sense, it isn't working for me. I have lighttpd installed, and I have checked that the module mod_rewrite is enable. It is. However, I am still not able to get this code working correctly. I remember having it work at one point but I don't remember what I did. Any suggestions on how to diagnose what the issue is? Any help is appreciated. Thank you! |
| | |
| | #4 (permalink) | ||||
| NamePros Regular Join Date: Mar 2009
Posts: 537
![]() ![]() ![]() ![]() ![]() ![]() | HI in your original you have QSA to append a query string. In the documentation linked above at the end you find this:
| ||||
| | |
| | #5 (permalink) |
| Account Suspended Join Date: Dec 2010
Posts: 1
![]() | would recommend that you take a look at this thread which provides a basic guide to convert mod rewrite rule apache to lighttpd is RewriteRule ^dmca-policy.html$ dmca-policy.html [L] RewriteRule ^sitemap.xml$ sitemap.xml [L] |
| | |