From 3610f3706046796cf2b44553c76c12beaa27b05b Mon Sep 17 00:00:00 2001 From: zPlus <-> Date: Wed, 23 Mar 2016 21:49:44 +0100 Subject: [PATCH] .htaccess: Add rule to redirect comments from old URL --- .htaccess | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.htaccess b/.htaccess index eb39e68d..84392dc1 100755 --- a/.htaccess +++ b/.htaccess @@ -9,6 +9,8 @@ RewriteRule .+/images/(.+)$ images/$1 [NC,L,QSA] RewriteRule .+/javascript/(.+)$ javascript/$1 [NC,L,QSA] + # community/[community name]/post/[post hash_id]/[post title]/comment/[comment hash_id] + RewriteRule community/.+/post/(.+)/.+/comment/(.+)$ post/$1#comment-$2 [NC,NE,L,QSA,R=301] # Redirect old urls RewriteRule community/.+/post/(.+)/.+$ post/$1 [NC,L,QSA,R=301] RewriteRule community/.+/post/(.+)/*$ post/$1 [NC,L,QSA,R=301]