如何正确配置.htaccess + fastcgi?

时间:2019-03-23 19:28:54

标签: php apache fastcgi

Win 2003上有一堆Fastcgi + Apache。

http://www.xxx.ru有效

http://www.xxx.ru/api/get_privacy_policy由于某种原因不起作用。告诉我我在做什么错了吗?

enter image description here

Options -Multiviews
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-s
    RewriteRule ^(.*)$ api.php?x=$1 [QSA,NC,L]

    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.*)$ api.php [QSA,NC,L]

    RewriteCond %{REQUEST_FILENAME} -s
    RewriteRule ^(.*)$ api.php [QSA,NC,L]
</IfModule>

0 个答案:

没有答案
相关问题