Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: remove forum/”topic”/number

Open your config.php file and change line 26 (I think) to

$bb->mod_rewrite = 'slugs';

(It should have been $bb->mod_rewrite = [true or false] before.)

Put the following code in your .htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^forum/(.+)/page/([0-9]+)$ /forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/(.+)/?$ /forum.php?id=$1 [L,QSA]
RewriteRule ^topic/(.+)/page/([0-9]+)$ /topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/(.+)/?$ /topic.php?id=$1 [L,QSA]
RewriteRule ^tags/(.+)/page/([0-9]+)$ /tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/(.+)/?$ /tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /tags.php [L,QSA]
RewriteRule ^profile/(.+)/page/([0-9]+)$ /profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/(.+)/([a-z]+)$ /profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/(.+)/([a-z]+)/page/([0-9]+)$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/(.+)/?$ /profile.php?id=$1 [L,QSA]
RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([a-z-]+)$ /view.php?view=$1 [L,QSA]
RewriteRule ^rss/$ /rss.php [L,QSA]
RewriteRule ^rss/forum/([0-9]+)$ /rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([0-9]+)$ /rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([a-z]+)$ /rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([0-9]+)$ /rss.php?profile=$1 [L,QSA]
</IfModule>

Skip to toolbar