发现一个免费主机,伪静态咋设置不对
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }
location / { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } }
location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php last; } }
魔王牛逼
魔王 location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } lo ...
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,L] </IfModule>
使用这个伪静态,不支持Apache location / {
只允许break、if、return、rewrite、set这五个指令
用AI转换不行
哪家的我也想要
[引用消息已被删除]
nginx服务器,不能像宝塔一样使用location / {
什么主机啊
你告诉我哪家的,我去帮你试试。