Skip to:
Content
Pages
Categories
Search
Top
Bottom

Permalinks Issue

  • @richedmonds

    Member

    Looking through the forum, I see there have been many problems surrounding the “pretty URL” configuration, namely the .htaccess. We seem to be experiencing the same issue, if we change permalinks to the last option for a complete listing, we receive a 500 server error (we don’t have a .htaccess at all from the installation for some reason). Manually creating a .htaccess file with the following (found this from the forums) seems to stop the 500 but then throws 404s when browsing the forums/topics/profiles etc.


    Options +FollowSymlinks

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /community/

    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/([^/]+)/([^/]+)/?$ /profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([^/]+)/?$ /profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([^/]+)/?$ /view.php?view=$1 [L,QSA]

    RewriteRule ^rss/?$ /rss.php [L,QSA]

    RewriteRule ^rss/forum/([^/]+)/?$ /rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([^/]+)/?$ /rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([^/]+)/?$ /rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([^/]+)/?$ /rss.php?profile=$1 [L,QSA]

    </IfModule>


    We experienced the same issue with Invision Power Board, but adding “Options +FollowSymlinks” corrected the problem and we were able to have sexy URLs. For bbPress, however, it seems to not make a shred of difference. We are aware of the correct .htaccess code being supplied via the permalinks section in the ACP, but we never get provided with such code. Every time we change the permalinks setting, we are hit by a 500. .htaccess files are not my strong point as you have more than likely guessed.

    The bbPress installation is located at /community while a WordPress installation (with working permalinks and .htaccess) is at root.

    Any help would be appreciated,

    Regards,

    Rich

  • You must be logged in to reply to this topic.
Skip to toolbar