Skip to content

Commit 5d4ec4b

Browse files
committed
Redirect / to /app
The actual root of the permanent.org web app lives at /app, so this commit updates the apache config to redirect the / route to /app.
1 parent d431fdd commit 5d4ec4b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

templates/etc/apache2/sites-available/dev.permanent.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
</Directory>
7979

8080
AliasMatch ^/preview(.*) /data/www/api/preview.php$1
81+
RewriteRule ^/$ /app [L,R=302]
8182
RewriteRule ^/m$ /app [L,R=302]
8283
RewriteRule ^/m/(.*)$ /app/$1 [L,R=302]
8384
Alias /app /data/www/mdot/dist/mdot

templates/etc/apache2/sites-available/prod.permanent.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585

8686
AliasMatch ^/preview(.*) /data/www/api/preview.php$1
8787

88+
RewriteRule ^/$ /app [L,R=302]
8889
RewriteRule ^/m$ /app [L,R=302]
8990
RewriteRule ^/m/(.*)$ /app/$1 [L,R=302]
9091
Alias /app /data/www/mdot/dist/mdot

templates/etc/apache2/sites-available/staging.permanent.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979

8080
AliasMatch ^/preview(.*) /data/www/api/preview.php$1
8181

82+
RewriteRule ^/$ /app [L,R=302]
8283
RewriteRule ^/m$ /app [L,R=302]
8384
RewriteRule ^/m/(.*)$ /app/$1 [L,R=302]
8485
Alias /app /data/www/mdot/dist/mdot

0 commit comments

Comments
 (0)