(Lighttpd / Burning Board 3) Redirect SEO Links in Burning Board 4

When switching from Burning Board 3 on Burning Board 4, the old links of the search engine optimization plugin no longer work. This problem can be solved with the below descriptions.


Open the lighttpd.conf and search to match your entry in the file at the new description and replace the old with the new description.


If the community plugins not be installed in the default directories (blog, gallery), then you need to adjust the path accordingly in the descriptions!


Please pay attention to the correct path if your forum is located in a subfolder and is not called directly over the domain.



# User profile link format
# user/{USER_ID}-{USERNAME}/
Old: "^/user/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=User&userID=$1&username=$2&$4",
New: "^/user/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/User/$1-$2/?$4",


# user/{USER_ID}/{USERNAME}/
Old: "^/user/([0-9]+)/([^/\.]*)/?(\?(.*))?$" => "/index.php?page=User&userID=$1&username=$2&$4",
New: "^/user/([0-9]+)/([^/\.]*)/?(\?(.*))?$" => "index.php/User/$1-$2/?$4",


# Links to last post format
# {PARENT_BOARDS}board{BOARD_ID}-{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/last-post.html
Old: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$4&action=lastPost&$7",
New: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "index.php/Thread/$4-$5/?action=lastPost&$6",


# {PARENT_BOARDS}{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/last-post.html
Old: "^/([^/\.]+/)*([^/\.]+)/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$3&action=lastPost&$6",
New: "^/([^/\.]+/)*([^/\.]+)/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "index.php/Thread/$3-$4/?action=lastPost&$5",


# {BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/last-post.html
Old: "^/([^/\.]+)/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$2&action=lastPost&$5",
New: "^/([^/\.]+)/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "index.php/Thread/$2-$3/?action=lastPost&$4",


# board{BOARD_ID}-{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/last-post.html
Old: "^/board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$3&action=lastPost&$6",
New: "^/board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "index.php/Thread/$3-$4/?action=lastPost&$6",


# {THREAD_ID}-{THREAD_TOPIC}/last-post.html
Old: "^/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$1&action=lastPost&$4",
New: "^/([0-9]+)\-([^/\.]*)/last\-post\.html(\?(.*))?$" => "index.php/Thread/$1-$2/?action=lastPost&$4",


# Links to first new post format
# {PARENT_BOARDS}board{BOARD_ID}-{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/first-new-post.html
Old: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$4&action=firstNew&$7",
New: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "index.php/Thread/$3-$4/?action=firstNew&$6",


# {PARENT_BOARDS}{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/first-new-post.html
Old: "^/([^/\.]+/)*([^/\.]+)/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$3&action=firstNew&$6",
New: "^/([^/\.]+/)*([^/\.]+)/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "index.php/Thread/$3-$4/?action=firstNew&$5",


# {BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/first-new-post.html
Old: "^/([^/\.]+)/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$2&action=firstNew&$5",
New: "^/([^/\.]+)/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "index.php/Thread/$2-$3/?action=firstNew&$4",


# board{BOARD_ID}-{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/first-new-post.html
Old: "^/board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$3&action=firstNew&$6",
New: "^/board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "index.php/Thread/$3-$4/?action=firstNew&$6",


# {THREAD_ID}-{THREAD_TOPIC}/first-new-post.html
Old: "^/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$1&action=firstNew&$4",
New: "^/([0-9]+)\-([^/\.]*)/first\-new\-post\.html(\?(.*))?$" => "index.php/Thread/$1-$2/?action=firstNew&$4",


# Post link format
# {PARENT_BOARDS}board{BOARD_ID}-{BOARD_TITLE}/p{POST_ID}-{THREAD_TOPIC}/
Old: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&postID=$4&$7",
New: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/?postID=$4&$7",


# {PARENT_BOARDS}{BOARD_TITLE}/p{POST_ID}-{THREAD_TOPIC}/
Old: "^/([^/\.]+/)*([^/\.]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&postID=$3&$6",
New: "^/([^/\.]+/)*([^/\.]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/?postID=$3&$6",


# {BOARD_TITLE}/p{POST_ID}-{THREAD_TOPIC}/
Old: "^/([^/\.]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&postID=$2&$5",
New: "^/([^/\.]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/?postID=$2&$5",


# board{BOARD_ID}-{BOARD_TITLE}/p{POST_ID}-{THREAD_TOPIC}/
Old: "^/board([0-9]+)\-([^/\.]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&postID=$3&$6",
New: "^/board([0-9]+)\-([^/\.]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/?postID=$3&$6",


# board{BOARD_ID}/p{POST_ID}-{THREAD_TOPIC}/
Old: ^/board([0-9]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&postID=$2&$5",
New: ^/board([0-9]+)/p([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/?postID=$2&$5",


# p{POST_ID}-{THREAD_TOPIC}.html
Old: "^/p([0-9]+)\-([^/\.]*)\.html(\?(.*))?$" => "/index.php?page=Thread&postID=$1&$4",
New: "^/p([0-9]+)\-([^/\.]*)\.html(\?(.*))?$" => "index.php/Thread/?postID=$1&$4",


# Thread links for multiple pages format
# {PARENT_BOARDS}board{BOARD_ID}-{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/index{THREAD_PAGE_NO}.html
Old: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$4&pageNo=$6&$8",
New: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "index.php/Thread/$4-$5/?pageNo=$5&$7",


# {PARENT_BOARDS}{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/index{THREAD_PAGE_NO}.html
Old: "^/([^/\.]+/)*([^/\.]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$3&pageNo=$5&$7",
New: "^/([^/\.]+/)*([^/\.]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "index.php/Thread/$3-$4/?pageNo=$5&$7",


# {BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/index{THREAD_PAGE_NO}.html
Old: "^/([^/\.]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$2&pageNo=$4&$6",
New: "^/([^/\.]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "index.php/Thread/$2-$3/?pageNo=$4&$6",


# board{BOARD_ID}-{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/index{THREAD_PAGE_NO}.html
Old: "^/board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$3&pageNo=$5&$7",
New: "^/board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "index.php/Thread/$3-$4/?pageNo=$5&$7",


# board{BOARD_ID}/{THREAD_ID}-{THREAD_TOPIC}/index{THREAD_PAGE_NO}.html
Old: "^/board([0-9]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$2&pageNo=$4&$6",
New: "^/board([0-9]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html(\?(.*))?$" => "index.php/Thread/$2-$3/?pageNo=$4&$6",


# {THREAD_ID}-{THREAD_TOPIC}/thread{THREAD_PAGE_NO}.html
Old: "^/([0-9]+)\-([^/\.]*)/thread([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$1&pageNo=$3&$5",
New: "^/([0-9]+)\-([^/\.]*)/thread([0-9]+)\.html(\?(.*))?$" => "index.php/Thread/$1-$2/?pageNo=$3&$5",


# Thread link format
# {PARENT_BOARDS}board{BOARD_ID}-{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/
Old: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&threadID=$4&$7",
New: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/$4-$5/?$6",


# {PARENT_BOARDS}{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/
Old: "^/([^/\.]+/)*([^/\.]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&threadID=$3&$6",
New: "^/([^/\.]+/)*([^/\.]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/$3-$4/?$6",


# {BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/
Old: "^/([^/\.]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&threadID=$2&$5",
New: "^/([^/\.]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/$2-$3/?$5",


# board{BOARD_ID}-{BOARD_TITLE}/{THREAD_ID}-{THREAD_TOPIC}/
Old: "^/board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&threadID=$3&$6",
New: "^/board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/$3/?$6",


# board{BOARD_ID}/{THREAD_ID}-{THREAD_TOPIC}/
Old: "^/board([0-9]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=Thread&threadID=$2&$5"
New: "^/board([0-9]+)/([0-9]+)\-([^/\.]*)/?(\?(.*))?$" => "index.php/Thread/$2/?$5",


# {THREAD_ID}-{THREAD_TOPIC}.html
Old: "^/([0-9]+)\-([^/\.]*)\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$1&$4"
New: "^/([0-9]+)\-([^/\.]*)\.html(\?(.*))?$" => "index.php/Thread/$1/?$4",


# Board links to multiple pages format
# {PARENT_BOARDS}board{BOARD_ID}-{BOARD_TITLE}/index{BOARD_PAGE_NO}.html
Old: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/index([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Board&boardID=$2&pageNo=$4&$6",
New: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/index([0-9]+)\.html(\?(.*))?$" => "index.php/Board/$2-$3/?pageNo=$4&$6",


# {PARENT_BOARDS}{BOARD_TITLE}/index{BOARD_PAGE_NO}.html
Old: "^/([^/\.]+/)*([^/\.]+)/index([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Board&boardTitle=$2&pageNo=$3&$5",
New: "^/([^/\.]+/)*([^/\.]+)/index([0-9]+)\.html(\?(.*))?$" => "index.php/BoardList/",


# board{BOARD_ID}/index{BOARD_PAGE_NO}.html
Old: "^/board([0-9]+)/index([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Board&boardID=$1&pageNo=$2&$4",
New: "^/board([0-9]+)/index([0-9]+)\.html(\?(.*))?$" => "index.php/Board/$1/?pageNo=$2&$4",


# {BOARD_TITLE}/board{BOARD_PAGE_NO}.html
Old: "^/([^/\.]+)/board([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Board&boardTitle=$1&pageNo=$2&$4",
New: "^/([^/\.]+)/board([0-9]+)\.html(\?(.*))?$" => "index.php/BoardList/",


# Link-Format für übergeordnete Foren
# board{BOARD_ID}-{BOARD_TITLE}/
Old: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/?(\?(.*))?$" => "/index.php?page=Board&boardID=$2&$5",
New: "^/(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/?(\?(.*))?$" => "index.php/Board/$2-$3/?$5",


# {BOARD_TITLE}/
Old: "^/([^/\.]+/)*([^/\.]+)/?(\?(.*))?$" => "/index.php?page=Board&boardTitle=$2&$4",
New: "^([^/\.]+)\.html$" => "index.php/BoardList/",


# board{BOARD_ID}/
Old: "^/board([0-9]+)/?(\?(.*))?$" => "/index.php?page=Board&boardID=$1&$3"
New: "^/board([0-9]+)/?(\?(.*))?$" => "index.php/Board/$1/?$3",


# Startseiten-Links umschreiben
# {PAGE_TITLE}.html
Old: "^/([^/\.]+)\.html(\?(.*))?$" => "/index.php?page=Index&$3"
New: "^/([^/\.]+)\.html(\?(.*))?$" => "index.php/BoardList/",


# index.html
Old: "^/index\.html(\?(.*))?$" => "/index.php?page=Index&$2"
New: "^/index\.html(\?(.*))?$" => "index.php/BoardList/",


Blog


#Blog link format
#user/blog{USER_ID}-{USERNAME}/
Old: "^user/blog([0-9]+)\-([^/\.]*)/entry([0-9]+)\-([^/\.]*)/?$" => "index.php?page=UserBlogEntry&entryID=$3",
New: "^user/blog([0-9]+)\-([^/\.]*)/entry([0-9]+)\-([^/\.]*)/?$" => "/blog/index.php/Entry/$3-$4/",


#user/blog{USER_ID}/{USERNAME}/
Old: "^user/blog([0-9]+)/([^/\.]*)/entry([0-9]+)/([^/\.]*)/?$" => "index.php?page=UserBlogEntry&entryID=$3",
New: "^user/blog([0-9]+)/([^/\.]*)/entry([0-9]+)/([^/\.]*)/?$" => "/blog/index.php/Entry/$3-$4/",


#Category link format
#user/blog{USER_ID}-{USERNAME}/category{CATEGORY_ID}-{CATEGORY_NAME}/
Old: "^user/blog([0-9]+)\-([^/\.]*)/category([0-9]+)\-([^/\.]*)/?$" => "index.php?page=UserBlog&userID=$1&categoryID=$3",
New: "^user/blog([0-9]+)\-([^/\.]*)/category([0-9]+)\-([^/\.]*)/?$" => "/blog/index.php/EntryList/?userID=$1",


#user/blog{USER_ID}/{USERNAME}/category{CATEGORY_ID}/{CATEGORY_NAME}/
Old: "^user/blog([0-9]+)/([^/\.]*)/category([0-9]+)/([^/\.]*)/?$" => "index.php?page=UserBlog&userID=$1&categoryID=$3",
New: "^user/blog([0-9]+)/([^/\.]*)/category([0-9]+)/([^/\.]*)/?$" => "/blog/index.php/EntryList/?userID=$1",


#Category link format (global)
#blog/category{CATEGORY_ID}-{CATEGORY_NAME}/
Old: "^blog/category([0-9]+)\-([^/\.]*)/?$" => "index.php?page=UserBlogOverview&categoryID=$1",
New: "^blog/category([0-9]+)\-([^/\.]*)/?$" => "/blog/index.php/Blog/",


#blog/category{CATEGORY_ID}/{CATEGORY_NAME}/
Old: "^blog/category([0-9]+)/([^/\.]*)/?$" => "index.php?page=UserBlogOverview&categoryID=$1",
New: "^blog/category([0-9]+)/([^/\.]*)/?$" => "/blog/index.php/Blog/",


#Article link format
#user/blog{USER_ID}-{USERNAME}/entry{ENTRY_ID}-{ENTRY_SUBJECT}/
Old: "^user/blog([0-9]+)\-([^/\.]*)/?$" => "index.php?page=UserBlog&userID=$1",
New: "^user/blog([0-9]+)\-([^/\.]*)/?$" => "/blog/index.php/EntryList/?userID=$1",


#user/blog{USER_ID}/{USERNAME}/entry{ENTRY_ID}/{ENTRY_SUBJECT}/
Old: "^user/blog([0-9]+)/([^/\.]*)/?$" => "index.php?page=UserBlog&userID=$1",
New: "^user/blog([0-9]+)/([^/\.]*)/?$" => "/blog/index.php/EntryList/?userID=$1",


Gallery


#Gallery link format
#user/gallery{USER_ID}-{USERNAME}/
Old: "^user/gallery([0-9]+)\-([^/\.]*)/photo([0-9]+)\-([^/\.]*)/?$" => "index.php?page=UserGalleryPhoto&photoID=$3",
New: "^user/gallery([0-9]+)\-([^/\.]*)/photo([0-9]+)\-([^/\.]*)/?$" => "/gallery/index.php/Image/$3-$4/",


#user/gallery{USER_ID}/{USERNAME}/
Old: "^user/gallery([0-9]+)/([^/\.]*)/photo([0-9]+)/([^/\.]*)/?$" => "index.php?page=UserGalleryPhoto&photoID=$3",
New: "^user/gallery([0-9]+)/([^/\.]*)/photo([0-9]+)/([^/\.]*)/?$" => "/gallery/index.php/Image/$3-$4/",


#Album link format
#user/gallery{USER_ID}-{USERNAME}/album{ALBUM_ID}-{ALBUM_TITLE}/
Old: "^user/gallery([0-9]+)\-([^/\.]*)/album([0-9]+)\-([^/\.]*)/?$" => "index.php?page=UserGalleryPhotos&albumID=$3",
New: "^user/gallery([0-9]+)\-([^/\.]*)/album([0-9]+)\-([^/\.]*)/?$" => "/gallery/index.php/Album/$3-$4/",


#user/gallery{USER_ID}/{USERNAME}/album{ALBUM_ID}/{ALBUM_TITLE}/
Old: "^user/gallery([0-9]+)/([^/\.]*)/album([0-9]+)/([^/\.]*)/?$" => "index.php?page=UserGalleryPhotos&albumID=$3",
New: "^user/gallery([0-9]+)/([^/\.]*)/album([0-9]+)/([^/\.]*)/?$" => "/gallery/index.php/Album/$3-$4/",


#Category link format
#gallery/category{CATEGORY_ID}-{CATEGORY_NAME}/
Old: "^gallery/category([0-9]+)\-([^/\.]*)/?$" => "index.php?page=UserGalleryOverview&categoryID=$1",
New: "^gallery/category([0-9]+)\-([^/\.]*)/?$" => "/gallery/index.php/Gallery/",


#gallery/category{CATEGORY_ID}/{CATEGORY_NAME}/
Old: "^gallery/category([0-9]+)/([^/\.]*)/?$" => "index.php?page=UserGalleryOverview&categoryID=$1",
New: "^gallery/category([0-9]+)/([^/\.]*)/?$" => "/gallery/index.php/Gallery/",


#Photo link format
#user/gallery{USER_ID}-{USERNAME}/photo{PHOTO_ID}-{PHOTO_TITLE}/
Old: "^user/gallery([0-9]+)\-([^/\.]*)/?$" => "index.php?page=UserGallery&userID=$1",
New: "^user/gallery([0-9]+)\-([^/\.]*)/?$" => "/gallery/index.php/Image/$3-$4/",


#user/gallery{USER_ID}/{USERNAME}/photo{PHOTO_ID}/{PHOTO_TITLE}/
Old: "^user/gallery([0-9]+)/([^/\.]*)/?$" => "index.php?page=UserGallery&userID=$1",
New: "^user/gallery([0-9]+)/([^/\.]*)/?$" => "/gallery/index.php/Image/$3-$4/",



A completed new .htaccess for the old SEO with the default values after the installation would look like this: