Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 7da3383

Browse files
committed
redirect /app.php to prevent duplicate content
1 parent de036c8 commit 7da3383

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/.htaccess

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# RewriteBase /
66
#</IfModule>
77

8+
# redirect to URI without front controller to prevent duplicate content
9+
RewriteRule ^app\.php(/(.*)|$) /$2 [R=301,END]
10+
11+
# rewrite requests to non-existent files to front controller
812
RewriteCond %{REQUEST_FILENAME} !-f
9-
RewriteRule ^(.*)$ app.php [QSA,L]
13+
RewriteRule ^(.*)$ app.php [QSA,END]
1014
</IfModule>

0 commit comments

Comments
 (0)