Created
August 6, 2014 13:48
-
-
Save SoftCreatR/6326874fb4becf48e1b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sascha Greuel <sascha@softcreatr.de> | |
# 2014-08-06 | |
# Rev. 1 | |
# ========== | |
# WoltLab Community Framework | |
# ========== | |
if ($args ~ "page=Portal") { | |
rewrite ^.*$ /index.php/Dashboard/? permanent; | |
} | |
if ($args ~ "page=Attachment&attachmentID=(\d+)") { | |
rewrite ^.*$ /index.php/Attachment/$arg_attachmentID/? permanent; | |
} | |
# ========== | |
# WoltLab Burning Board | |
# ========== | |
if ($args ~ "page=Index") { | |
rewrite ^.*$ /index.php/BoardList/? permanent; | |
} | |
if ($args ~ "page=User&userID=(\d+)") { | |
rewrite ^.*$ /index.php/User/$arg_userID/? permanent; | |
} | |
if ($args ~ "page=Thread&threadID=(\d+)&action=(lastPost|firstNew)") { | |
rewrite ^.*$ /index.php/Thread/$arg_threadID/?action=$arg_action? permanent; | |
} | |
if ($args ~ "page=Thread&postID=(\d+)") { | |
set $postID $arg_postID; | |
rewrite ^.*$ /index.php/Thread/?postID=$postID#post$postID? permanent; | |
} | |
if ($args ~ "page=Thread&threadID=(\d+)&pageNo=(\d+)") { | |
rewrite ^.*$ /index.php/Thread/$arg_threadID/?pageNo=$arg_pageNo? permanent; | |
} | |
if ($args ~ "page=Thread&threadID=(\d+)") { | |
rewrite ^.*$ /index.php/Thread/$arg_threadID/? permanent; | |
} | |
if ($args ~ "page=Board&boardID=(\d+)&pageNo=(\d+)") { | |
rewrite ^.*$ /index.php/Board/$arg_boardID/?pageNo=$arg_pageNo? permanent; | |
} | |
if ($args ~ "page=Board&boardID=(\d+)") { | |
rewrite ^.*$ /index.php/Board/$arg_boardID/? permanent; | |
} | |
# ========== | |
# WoltLab Community Blog | |
# ========== | |
if ($args ~ "page=UserBlogOverview") { | |
rewrite ^.*$ /blog/index.php/Blog/? permanent; | |
} | |
if ($args ~ "page=UserBlogEntry&entryID=(\d+)") { | |
rewrite ^.*$ /blog/index.php/Entry/$arg_entryID/? permanent; | |
} | |
if ($args ~ "page=UserBlogEntry&userID=(\d+)") { | |
rewrite ^.*$ /blog/index.php/EntryList/?userID=$arg_userID? permanent; | |
} | |
if ($args ~ "page=UserBlogEntry&categoryID=(\d+)") { | |
rewrite ^.*$ /blog/index.php/EntryList/$arg_categoryID/? permanent; | |
} | |
# ========== | |
# WoltLab Community Gallery | |
# ========== | |
if ($args ~ "page=UserGalleryOverview") { | |
rewrite ^.*$ /gallery/index.php/Gallery/? permanent; | |
} | |
if ($args ~ "page=UserGalleryAlbumList&userID=(\d+)&userID=(\d+)") { | |
rewrite ^.*$ /gallery/index.php/AlbumList/$arg_userID/?pageNo=$arg_pageNo? permanent; | |
} | |
if ($args ~ "page=UserGalleryAlbumList&userID=(\d+)") { | |
rewrite ^.*$ /gallery/index.php/AlbumList/$arg_userID/? permanent; | |
} | |
if ($args ~ "page=UserGalleryPhotos&userID=(\d+)&pageNo=(\d+)") { | |
rewrite ^.*$ /gallery/index.php/ImageList/$arg_userID/?pageNo=$arg_pageNo? permanent; | |
} | |
if ($args ~ "page=UserGalleryPhotos&userID=(\d+)") { | |
rewrite ^.*$ /gallery/index.php/ImageList/$arg_userID/? permanent; | |
} | |
if ($args ~ "page=UserGalleryPhoto&photoID=(\d+)") { | |
rewrite ^.*$ /gallery/index.php/Image/$arg_photoID/? permanent; | |
} | |
if ($args ~ "page=UserGalleryPhoto&photoID=(\d+)") { | |
rewrite ^.*$ /gallery/index.php/Image/$arg_photoID/? permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment