jethrokapinksy (@jethrokapinksy)

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @jethrokapinksy

    Member

    i wish i knew enough to offer an opinion. i’ve known about mod_rewrite for years from trying to configure drupal and wordpress. never heard of/used multiviews… hope that helps.

    @jethrokapinksy

    Member

    Ok, I just realized that what worked for me only applied to a ‘clean’ top-level install, and what people are having issues with is installing bbpress in example.com/forums/, because example.com’s .htaccess is over-riding example.com/forums/ ‘s .htaccess file.

    So here’s my example.com (permalinks work great):

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    </IfModule>

    chmod: 644

    And here’s my example.com/forums .htaccess content:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /forum/

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^([^/]+)/(.*)?$ /forum/$1.php [PT,QSA]

    </IfModule>

    Any ideas?

    Thanks

    @jethrokapinksy

    Member

    you meant the “anti-corporate image”? that’s what i really like.

    @jethrokapinksy

    Member

    this is what worked for me:

    <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/([^/]+)/([^/]+)/?$ /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>

    hope that helps someone

Viewing 4 replies - 1 through 4 (of 4 total)