не получается настроить реврайты на kootali 1.5
Igor Sysoev
is at rambler-co.ru
Thu Oct 15 18:51:47 MSD 2009
On Wed, Oct 14, 2009 at 11:28:26AM +0400, Nemov Dmitry wrote:
> Здравствуйте, у меня не получается настроить реврайты под nginx для
> kootali 1.5, помогите плз. Это оригинальный .htaccess
>
> RewriteEngine on
>
> RewriteBase /
> # if you installed facebook in a subdir use something like below and
> remove the line above
> #
> # RewriteBase /subdirectory/
>
> RewriteRule ^admin/$ index.php/admin/login/
> RewriteRule ^admin$ index.php/admin/login/
>
> RewriteCond $1 !^(index\.php|application/images|application/scripts|application/css|application/content|application/settings|favicon.ico)
> RewriteRule ^(.*)$ index.php/$1
Как-то так:
root /path/to/files;
location = /admin {
fastcgi_pass ...
fastcgi_param SCRIPT_FILENAME /path/to/index.php;
fastcgi_param PATH_INFO /admin/login/;
include fastcgi_params;
}
location = /admin/ {
fastcgi_pass ...
fastcgi_param SCRIPT_FILENAME /path/to/index.php;
fastcgi_param PATH_INFO /admin/login/;
include fastcgi_params;
}
location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME /path/to$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
location = /favicon.ico {
}
location /application/images {
}
location /application/scripts {
}
location /application/css {
}
location / {
try_files $uri /index.php$uri;
}
--
Игорь Сысоев
http://sysoev.ru
More information about the nginx-ru
mailing list