home » zplus/freepost.git
Author zPlus <-> 2016-03-23 20:49:44
Committer zPlus <-> 2016-03-23 20:49:44
Commit 3610f37 (patch)
Tree fbb1133
Parent(s)

.htaccess: Add rule to redirect comments from old URL


commits diff: 898d592..3610f37
1 file changed, 2 insertions, 0 deletionsdownload


Diffstat
-rwxr-xr-x .htaccess 2

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+2/-0 M   .htaccess
index eb39e68..84392dc
old size: 1K - new size: 2K
@@ -9,6 +9,8 @@
9 9 RewriteRule .+/images/(.+)$ images/$1 [NC,L,QSA]
10 10 RewriteRule .+/javascript/(.+)$ javascript/$1 [NC,L,QSA]
11 11
12 + # community/[community name]/post/[post hash_id]/[post title]/comment/[comment hash_id]
13 + RewriteRule community/.+/post/(.+)/.+/comment/(.+)$ post/$1#comment-$2 [NC,NE,L,QSA,R=301]
12 14 # Redirect old urls
13 15 RewriteRule community/.+/post/(.+)/.+$ post/$1 [NC,L,QSA,R=301]
14 16 RewriteRule community/.+/post/(.+)/*$ post/$1 [NC,L,QSA,R=301]