diff --git a/.htaccess b/.htaccess index eb39e68..84392dc 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]