Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Pretty Permalinks Not Working


djvibe
Member

@djvibe

i got my pretty permalinks to work fine…. almost

http://www.djvibe.com/content/forums/

One little glitch though. I cant access any of my forums directly. It renames all of the forum links to /forum.

the links look like this:

ex. http://www.djvibe.com/content/forums/forum/

which returns an error.

My htaccess looks like this.

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /content/forums/

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

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

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

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

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

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

RewriteRule ^tags/?$ /content/forums/tags.php [L,QSA]

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

RewriteRule ^profile/([^/]+)/([^/]+)/?$ /content/forums/profile.php?id=$1&tab=$2 [L,QSA]

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

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

RewriteRule ^profile/?$ /content/forums/profile.php [L,QSA]

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

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

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

RewriteRule ^rss/topics/?$ /content/forums/rss.php?topics=1 [L,QSA]

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

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

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

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

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

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

</IfModule>

can’t seem to figure it.. any help would be appreciated.

graham@djvibe.com

Skip to toolbar