Tô vẽ sắc màu
Trang chủ
»
Code
code htaccess
Support
13.12.2023 - 21:18
11
[code=php]
DirectoryIndex index.php index.html
AddDefaultCharset UTF-8
# URL-rewriting
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Template asset function
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule.* index.php [QSA,L]
</IfModule>
[/code]
Đối tác - Bạn hữu
Dorew.org
Admin Login
2024
Blog Jani