Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom htaccess file, now 404 pages aren't resolving


  • AphelionZ
    Participant

    @aphelionz

    So I totally hacked up my htaccess file and now when I visit a nonexistant url it goes to the apache 404 page instead of the bbpress 404.. how do I need to change the code below to fix that?

    # BEGIN bbPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /community

    Options +FollowSymlinks +MultiViews

    RewriteRule ^forums$ forums/ [R=301]

    RewriteRule ^forums/$ /community/index.php?view=forums [P,L,QSA]

    RewriteRule ^leaderboards$ leaderboards/ [R=301]

    RewriteRule ^leaderboards/$ /community/index.php?view=leaderboards [P,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]

    RewriteRule ^page/([0-9]+)/?$ ?page=$1 [L,QSA]

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

    RewriteRule ^forums/([^/]+)/([^/]+)/?$ topic.php?id=$2 [L,QSA]

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

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

    </IfModule>

    # END bbPress

Viewing 1 replies (of 1 total)

  • chrishajer
    Participant

    @chrishajer

    How about comparing it to the stock .htaccess and see what’s different? Or, install the stock .htaccess and then make your changes one at a time?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar