RewriteEngine On RewriteBase / RewriteRule ^bbpress/forum/(.+)/page/([0-9]+)$ /bbpress/forum.php?id=$1&page=$2 [L,QSA] RewriteRule ^bbpress/forum/(.+)/?$ /bbpress/forum.php?id=$1 [L,QSA] RewriteRule ^bbpress/topic/(.+)/page/([0-9]+)$ /bbpress/topic.php?id=$1&page=$2 [L,QSA] RewriteRule ^bbpress/topic/(.+)/?$ /bbpress/topic.php?id=$1 [L,QSA] RewriteRule ^bbpress/tags/(.+)/page/([0-9]+)$ /bbpress/tags.php?tag=$1&page=$2 [L,QSA] RewriteRule ^bbpress/tags/(.+)/?$ /bbpress/tags.php?tag=$1 [L,QSA] RewriteRule ^bbpress/tags/?$ /bbpress/tags.php [L,QSA] RewriteRule ^bbpress/profile/(.+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&page=$2 [L,QSA] RewriteRule ^bbpress/profile/(.+)/([a-z-]+)$ /bbpress/profile.php?id=$1&tab=$2 [L,QSA] RewriteRule ^bbpress/profile/(.+)/([a-z-]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&tab=$2&page=$3 [L,QSA] RewriteRule ^bbpress/profile/(.+)/?$ /bbpress/profile.php?id=$1 [L,QSA] RewriteRule ^bbpress/view/([a-z-]+)/page/([0-9]+)$ /bbpress/view.php?view=$1&page=$2 [L,QSA] RewriteRule ^bbpress/view/([a-z-]+)$ /bbpress/view.php?view=$1 [L,QSA] RewriteRule ^bbpress/rss/$ /bbpress/rss.php [L,QSA] RewriteRule ^bbpress/rss/forum/([0-9]+)$ /bbpress/rss.php?forum=$1 [L,QSA] RewriteRule ^bbpress/rss/topic/([0-9]+)$ /bbpress/rss.php?topic=$1 [L,QSA] RewriteRule ^bbpress/rss/tags/([a-z-]+)$ /bbpress/rss.php?tag=$1 [L,QSA] RewriteRule ^bbpress/rss/profile/([0-9]+)$ /bbpress/rss.php?profile=$1 [L,QSA] ### Symphony 1.7 - Do not edit ### RewriteEngine on RewriteBase / ### DO NOT APPLY RULES WHEN REQUESTING "favicon.ico" RewriteCond %{REQUEST_FILENAME} favicon.ico [NC] RewriteRule .* - [S=14] ### IMAGE RULES RewriteRule ^image/([0-9]+)\/([0-9]+)\/(0|1)\/([a-fA-f0-9]{1,6})\/external/([\W\w]+)\.(jpg|gif|jpeg|png|bmp)$ /symphony/image.php?width=$1&height=$2&crop=$3&bg=$4&_f=$5.$6&external=true [L] RewriteRule ^image/external/([\W\w]+)\.(jpg|gif|jpeg|png|bmp)$ /symphony/image.php?width=0&height=0&crop=0&bg=0&_f=$1.$2&external=true [L] RewriteRule ^image/([0-9]+)\/([0-9]+)\/(0|1)\/([a-fA-f0-9]{1,6})\/external/(.*)\.(jpg|gif|jpeg|png|bmp)$ /symphony/image.php?width=$1&height=$2&crop=$3&bg=$4&_f=$5.$6&external=true [L] RewriteRule ^image/external/(.*)\.(jpg|gif|jpeg|png|bmp)$ /symphony/image.php?width=0&height=0&crop=0&bg=0&_f=$1.$2&external=true [L] RewriteRule ^image/([0-9]+)\/([0-9]+)\/(0|1)\/([a-fA-f0-9]{1,6})\/([\W\w]+)\.(jpg|gif|jpeg|png|bmp)$ /symphony/image.php?width=$1&height=$2&crop=$3&bg=$4&_f=$5.$6 [L] RewriteRule ^image/([\W\w]+)\.(jpg|gif|jpeg|png|bmp)$ /symphony/image.php?width=0&height=0&crop=0&bg=0&_f=$1.$2 [L] RewriteRule ^image/([0-9]+)\/([0-9]+)\/(0|1)\/([a-fA-f0-9]{1,6})\/(.*)\.(jpg|gif|jpeg|png|bmp)$ /symphony/image.php?width=$1&height=$2&crop=$3&bg=$4&_f=$5.$6 [L] RewriteRule ^image/(.*)\.(jpg|gif|jpeg|png|bmp)$ /symphony/image.php?width=0&height=0&crop=0&bg=0&_f=$1.$2 [L] ### CHECK FOR TRAILING SLASH - Will ignore files RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !/$ RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ /$1/ [L,R=301] ### MAIN REWRITE - This will ignore directories RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\/$ /index.php?page=$1&%{QUERY_STRING} [L] DirectoryIndex index.php IndexIgnore * ######