lean/skeleton/public/.htaccess

19 lines
554 B
ApacheConf
Raw Normal View History

<IfModule mod_rewrite.c>
RewriteEngine On
2024-05-20 18:56:07 +00:00
# RewriteBase /
# Force HTTPS (disabled by default)
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Remove trailing slashes from request URL
2024-05-20 18:56:07 +00:00
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} (.+)/$
#RewriteRule ^ %1 [R=301,L]
# Redirect everything into app
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
2024-05-20 18:56:07 +00:00
RewriteRule ^([^?]*)$ %1 [NC,L,QSA]
</IfModule>