mirror of
https://github.com/michaelstaake/mainty.git
synced 2026-04-16 11:30:13 +00:00
15 lines
438 B
Plaintext
15 lines
438 B
Plaintext
RewriteEngine On
|
|
#if this is in a folder, edit this. example.com/mainty/ would be /mainty/
|
|
RewriteBase /
|
|
|
|
# Redirect to HTTPS (optional, uncomment if needed)
|
|
# RewriteCond %{HTTPS} off
|
|
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
|
|
# Don't rewrite files or directories
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
# Rewrite everything else to index.php
|
|
RewriteRule ^(.*)$ index.php [L,QSA]
|