Welcome! Log In Create A New Profile

Advanced

Re: Rewrite rules index.php/robots.txt

Anton Bessonov
February 25, 2010 06:18AM
Igor Sysoev schrieb:
> On Thu, Feb 25, 2010 at 02:57:00AM -0500, akyrzaman wrote:
>
>
>> Здравствуйте
>>
>> Не могу вкурить, как переделать .htaccess правила wordpress для хука do_robots под nginx.
>>
>> Под апачем при вызове фаила http://localhost/robots.txt обрабатывается хук do_robots
>>
>> После долгих ковыряний нашел такой вызов, http://localhost/index.php/robots.txt
>>
>> Но как такое провернуть на nginx?
>>
>> Или в какую сторону копать?
>>
>
> Как выглядят htaccess правила wordpress для хука do_robots, я не знаю,
> а http://localhost/robots.txt в http://localhost/index.php/robots.txt
>
> location = /robots.txt {
> fastcgi_pass ...
> fastcgi_param SCRIPT_FILENAME /path/to/index.php;
> fastcgi_param PATH_INFO /robots.txt;
> include fastcgi_params;
> }
>
>
>
Извиняюсь за оффтопик, но может стоит линк "New Topic" направить на
чистую страницу с 2 опциями - "поиск" и "rtfm"? Или просто перевести в
ридонли...


_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Rewrite rules index.php/robots.txt

akyrzaman February 25, 2010 02:57AM

Re: Rewrite rules index.php/robots.txt

Igor Sysoev February 25, 2010 05:34AM

Re: Rewrite rules index.php/robots.txt

Anton Bessonov February 25, 2010 06:18AM

Re: Rewrite rules index.php/robots.txt

Andrey N. Oktyabrski February 25, 2010 06:18AM

Re[2]: Rewrite rules index.php/robots.txt

Denis F. Latypoff February 25, 2010 06:26AM

Re: Rewrite rules index.php/robots.txt

akyrzaman February 25, 2010 09:25PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready