Files
GEOVizor_PHP/.htaccess
2023-11-07 19:51:49 +06:00

12 lines
430 B
ApacheConf

RewriteEngine on
Options -Indexes
# Убирает версию файла из file_v1234567890.js в file.js
RewriteRule ^(.*)_v[0-9]*\.(css|js|gif|png|jpg)$ $1.$2 [L]
#Если в запросе есть строка .html то перенаправляем запрос в другой файл
RewriteCond %{REQUEST_URI} ^.*$ [NC]
RewriteRule ^(.*)\.html$ /index.php?url=$1.html [L]
RewriteRule ^ru/$ /index.php?url=$1 [L]