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 deletions
—
download
Diffstat
Diff options
+2/-0
M .htaccess
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]
|