PDA

View Full Version : need help setting htaccess on lighthtpd


prandah
04-22-2011, 12:21 PM
hello all
i need help, before i use apache server, now i will change to lighthtpd. i will change to lighthtpd because i know lightpd is faster than apache :D
bu i have problem with .htaccess

can anyone help me to convert my old htaccess for htaccess on lightpd ?

here is my .htaccess on apache


# Customized error messages.
#ErrorDocument 404 /index.php

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteCond %{HTTP_HOST} ^ditusuk\.in$ [NC]
RewriteRule ^(.*)$ http://www.ditusuk.com/$1 [L,R=301]

RewriteCond %{HTTP_HOST} ^www\.ditusuk\.in$ [NC]
RewriteRule ^(.*)$ http://www.ditusuk.com/$1 [L,R=301]

RewriteCond %{HTTP_HOST} ^ditusuk\.com$ [NC]
RewriteRule ^(.*)$ http://www.ditusuk.com/$1 [L,R=301]
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>



thanks,

Angel-Wings
06-11-2011, 12:10 AM
hello all
i need help, before i use apache server, now i will change to lighthtpd. i will change to lighthtpd because i know lightpd is faster than apache :D

Do you know or just read this somewhere ? Here Apache is performing better than Lighty and also Nginx - specially when these 2 come to their maximum's Apache still can deliver content.

So well - about the htaccess question - did you read the documentation ?

http://redmine.lighttpd.net/wiki/lighttpd/FrequentlyAskedQuestions

Second point ?

Lover1
06-21-2011, 02:14 PM
Sure:

http://www.markround.com/archives/30-LigHTTPd-and-Apache-Symfony-benchmarks.html

http://schlitt.info/opensource/blog/0504_apache_vs_lighttpd_echo_performance.html

http://www.howtoforge.com/benchmark-apache2-vs-lighttpd-static-html-files

Only three, i found in seconds :)