lighttpd wordpress ?

0
Onaylı Üye
Üye
Katılım
21 Temmuz 2010
Mesajlar
0
Tepki puanı
0
merhaba arkadaşlar bu htacess dosyasını nasıl lighttpd uygun hale getirebilirim
teşekkürler


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

# END WordPress
 
0
Onaylı Üye
Üye
Katılım
6 Şubat 2007
Mesajlar
1,088
Tepki puanı
12
Konum
Ankara
Bu kodu /etc/lighttpd/lighttpd.conf dosyasında sitenizin konfigürasyonunun altına ekleyin.
Kod:
url.rewrite = (
	"^/(.*)\.(.+)$" => "$0",
	"^/(.+)/?$" => "/index.php/$1"
)

örnek olarak aşağıdaki gibi olmalı ;

Kod:
$HTTP["host"] =~ "(www.)?site.com" {
	url.rewrite = (
		"^/(.*)\.(.+)$" => "$0",
		"^/(.+)/?$" => "/index.php/$1"
	)
 
	[...diger ayarlar...]
}
 
Geri
Üst