charlyghislaindotcom/docker/httpd.conf
2021-02-15 00:53:10 +01:00

56 lines
1.3 KiB
ApacheConf

<Directory "/var/www/fr">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
RewriteEngine on
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteCond %{REQUEST_URI} "!=/index.html" [NC]
RewriteRule ^ /index.html [L]
</Directory>
<Directory "/var/www/en">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
RewriteEngine on
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteCond %{REQUEST_URI} "!=/index.html" [NC]
RewriteRule ^ /index.html [L]
</Directory>
<Directory "/var/www">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
RewriteEngine on
# If an existing asset or directory is requested go to it as it is
RewriteCond %{REQUEST_URI} "^=/fr/"
RewriteCond %{REQUEST_URI} "^=/en/"
RewriteRule ^ - [L]
RewriteRule ^ /fr/ [L,R]
</Directory>