Fix
This commit is contained in:
parent
d1c127d7b7
commit
f27c9a6b20
|
@ -1,6 +1,6 @@
|
||||||
DocumentRoot /var/www/
|
DocumentRoot /var/www/
|
||||||
|
|
||||||
<Directory "/var/www/fr">
|
<Directory "/var/www/">
|
||||||
Options -Indexes +FollowSymLinks
|
Options -Indexes +FollowSymLinks
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
|
@ -12,44 +12,14 @@ DocumentRoot /var/www/
|
||||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
||||||
RewriteRule ^ - [L]
|
RewriteRule ^ - [L]
|
||||||
|
|
||||||
# If the requested resource doesn't exist, use index.html
|
# If for an existing subpath, redirect to index
|
||||||
RewriteCond %{REQUEST_URI} "!=/fr/index.html" [NC]
|
RewriteCond %{REQUEST_URI} "=^/en/.*"
|
||||||
RewriteRule ^ /fr/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} "!=/en/index.html" [NC]
|
|
||||||
RewriteRule ^ /en/index.html [L]
|
RewriteRule ^ /en/index.html [L]
|
||||||
</Directory>
|
|
||||||
|
|
||||||
|
RewriteCond %{REQUEST_URI} "=^/fr/.*"
|
||||||
|
RewriteRule ^ /fr/index.html [L]
|
||||||
|
|
||||||
|
# If the requested resource doesn't exist, use index.html
|
||||||
<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]
|
RewriteRule ^ /fr/ [L, R]
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user