|
|
|
@ -1,9 +1,3 @@ |
|
|
|
|
{% if pim_web_alias is defined and pim_web_alias != False %} |
|
|
|
|
Alias /{{ pim_web_alias | regex_replace('^/','') }} {{ pim_root_dir }}/app/public |
|
|
|
|
{% else %} |
|
|
|
|
# No alias defined, create a vhost to access it |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<Directory {{ pim_root_dir }}/app/public> |
|
|
|
|
AllowOverride All |
|
|
|
|
Options FollowSymLinks |
|
|
|
@ -22,15 +16,9 @@ Alias /{{ pim_web_alias | regex_replace('^/','') }} {{ pim_root_dir }}/app/publi |
|
|
|
|
RewriteCond %{HTTP:Authorization} . |
|
|
|
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
|
|
|
|
|
|
|
|
|
# Redirect Trailing Slashes If Not A Folder... |
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d |
|
|
|
|
RewriteCond %{REQUEST_URI} (.+)/$ |
|
|
|
|
RewriteRule ^ %1 [L,R=301] |
|
|
|
|
|
|
|
|
|
# Send Requests To Front Controller... |
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d |
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f |
|
|
|
|
RewriteRule ^ index.php [L] |
|
|
|
|
RewriteRule ^ index.php [QSA,L] |
|
|
|
|
|
|
|
|
|
<FilesMatch "(\.git.*)"> |
|
|
|
|
Require all denied |
|
|
|
|