Skip to content

Commit c858d6d

Browse files
authored
Merge pull request #227 from PermanentOrg/per-9791_redirect_root_to_app_route
Redirect / to /app
2 parents be96ede + 5d4ec4b commit c858d6d

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)