admin Messages 1,679 Reaction score 288 Website tehadm.ru Nov 10, 2017 #1 Если apache, то добавляем в .htaccess Code: RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /index.php RewriteRule .* / [R=301,L] Если nginx, то: Code: if ($request_uri ~ "^/index.(php|html?)") { rewrite ^ /$1 permanent; }
Если apache, то добавляем в .htaccess Code: RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /index.php RewriteRule .* / [R=301,L] Если nginx, то: Code: if ($request_uri ~ "^/index.(php|html?)") { rewrite ^ /$1 permanent; }