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,
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,