2011年3月17日星期四

Very Simple htaccess rule

Hi Nginx.

Properly so simple you may laugh , but this world save my day :-)

RewriteEngine On

RewriteBase /

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ site/$1 [NC,L,QSA]
RewriteRule ^$ site/index.php [NC,L,QSA]

When you hit the domain.com i simple need to access domain.com/site/index.php.

After this info , i would like to study the rules more intense.
But i'm in a shortage of time right now.

Thanks In advance..

/Michael

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,183435,183435#msg-183435


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

没有评论:

发表评论