2017-06-13 22:54:16 +02:00
|
|
|
# Apache Server Configs v2.14.0 | MIT License
|
|
|
|
# https://github.com/h5bp/server-configs-apache
|
|
|
|
|
|
|
|
# (!) Using `.htaccess` files slows down Apache, therefore, if you have
|
|
|
|
# access to the main server configuration file (which is usually called
|
|
|
|
# `httpd.conf`), you should add this logic there.
|
|
|
|
#
|
|
|
|
# https://httpd.apache.org/docs/current/howto/htaccess.html.
|
|
|
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
|
|
|
|
# (1)
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
# (2)
|
|
|
|
Options +FollowSymlinks
|
|
|
|
|
|
|
|
# (3)
|
|
|
|
# Options +SymLinksIfOwnerMatch
|
|
|
|
|
|
|
|
# (4)
|
2021-02-03 09:32:48 +01:00
|
|
|
#RewriteBase /directory/public/
|
2019-12-05 18:29:10 +01:00
|
|
|
#RewriteBase /
|
2017-06-13 22:54:16 +02:00
|
|
|
|
|
|
|
# (5)
|
|
|
|
# RewriteOptions <options>
|
|
|
|
|
|
|
|
# (6)
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
2021-02-03 09:32:48 +01:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
RewriteRule ^(.*)$ /index.php [L]
|
|
|
|
RewriteRule ^$ /index.php [L]
|
2017-06-13 22:54:16 +02:00
|
|
|
|
|
|
|
</IfModule>
|
|
|
|
|