Загрузил проект на гит сурс
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
RewriteEngine On
|
||||
Options -MultiViews
|
||||
|
||||
# 1) /index.html -> / (только при прямом запросе клиента)
|
||||
RewriteCond %{THE_REQUEST} \s/+index\.html(?:[\s?]|$) [NC]
|
||||
RewriteRule ^index\.html$ / [R=301,L,NC]
|
||||
|
||||
# 2) /page.html -> /page (только при прямом запросе клиента)
|
||||
RewriteCond %{THE_REQUEST} \s/+(prices|portfolio|reviews|privacy|requisites)\.html(?:[\s?]|$) [NC]
|
||||
RewriteRule ^(prices|portfolio|reviews|privacy|requisites)\.html$ /$1 [R=301,L,NC]
|
||||
|
||||
# 3) /page или /page/ -> /page.html (внутренний роутинг без редиректа)
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(prices|portfolio|reviews|privacy|requisites)/?$ $1.html [L,NC]
|
||||
Reference in New Issue
Block a user