Skip to content

Commit e1afbb7

Browse files
committed
.htaccess: rewrite /cookbook/5.0 → /cookbook/5
1 parent eabd2cd commit e1afbb7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

static/.htaccess

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
ErrorDocument 404 /404.html
1+
ErrorDocument 404 /404.html
2+
3+
# Redirect /cookbook/5.0/... → /cookbook/5/...
4+
# 302 is temporary, 301 is permanent
5+
RewriteRule ^cookbook/5\.0(/.*)?$ /cookbook/5$1 [R=302,L]

0 commit comments

Comments
 (0)