HTTP/1.1 500 Internal Server Error
Server: nginx
Date: Tue, 01 Oct 2019 12:48:11 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Keep-Alive: timeout=20
X-Powered-By: PHP/5.6.38
X-Powered-By: PHP
означает, что ошибка произошла уже во время исполнения php скриптов, так что .htaccess тут ни при чем."GET /theme/images/slider/slide_shadow.png HTTP/1.0" 503
Options All -ExecCGI -Indexes -Includes +FollowSymLinks -MultiViews
ErrorDocument 404 /sait1/404.php
ErrorDocument 403 /sait1/404.php
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|cache|txt)$">
Order Allow,Deny
Deny from all
</FilesMatch>
http://site.com/posts/db23e8225b
try_files $uri $uri$_at$args.html $uri/ /index.php?$args;
/posts/db23e8225b.html
.http://site.com/posts/db23e8225b?a=b
, то идёт обращение к файлу /posts/db23e8225b@a=b.html
а если в странице нет знака @ то по запросу site.com/posts/db23e8225b надо отдать страницу /posts/db23e8225b.html но это не для всех файлов. т.е. както сделать условие, что сперва проверяется наличие страницы с html, а затем идет обращение к index.php . потому что сейчас она так же отдает 404
rewrite ^ http://site.com/posts/c0a323fc07 redirect;
rewrite ^ http://site.com/posts/c0a323fc07 permanent;
location /comment/ {
rewrite ^/comment/375/?$ http://site.com/posts/c0a323fc07 permanent;
rewrite ^/comment/2772/?$ http://site.com/posts/76d68d4d9d permanent;
}
$uri@$args.html
нормально работает для/groups/6e6a8e0ba4/posts?groupHash=cwkqcxch&sort=author&start=21&view=outline
+
?/post?postTypeName=General+Product+Question&sort=az&view=full&start=2401
После строки RewriteEngine On добавьте: