Re: Need Permalinks in bbpages plugin? SEO Friendly
The file should already exist in your bbPress Root.
Mine looks like this:
# BEGIN bbPress
Options -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /devstation/
RewriteRule ^rules/?$ /devstation/bb-page.php?page_id=1 [L]
RewriteRule ^faq/?$ /devstation/bb-page.php?page_id=2 [L]
RewriteRule ^page/([0-9]+)/?$ /devstation/index.php?page=$1 [L,QSA]
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /devstation/forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ /devstation/forum.php?id=$1 [L,QSA]
RewriteRule ^forum/?$ /devstation/ [R=302,L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /devstation/topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ /devstation/topic.php?id=$1 [L,QSA]
RewriteRule ^topic/?$ /devstation/ [R=302,L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /devstation/tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ /devstation/tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /devstation/tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /devstation/profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ /devstation/profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /devstation/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ /devstation/profile.php?id=$1 [L,QSA]
RewriteRule ^profile/?$ /devstation/profile.php [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /devstation/view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ /devstation/view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ /devstation/rss.php [L,QSA]
RewriteRule ^rss/topics/?$ /devstation/rss.php?topics=1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ /devstation/rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/topics/?$ /devstation/rss.php?forum=$1&topics=1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ /devstation/rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ /devstation/rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/topics/?$ /devstation/rss.php?tag=$1&topics=1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ /devstation/rss.php?profile=$1 [L,QSA]
RewriteRule ^rss/view/([^/]+)/?$ /devstation/rss.php?view=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /devstation/index.php [L]
</IfModule>
# END bbPress
Most of those should already be there. I have separated the two rules at the top so you can see how it is done for pages.
If your site has a forum directory (ie the forum does not reside on the top-level of your site, then you should remove the “devstation/”. If it does, then replace “devstation/” with your forum’s directory.
Regards
Michael