rewrite directory base little confused, and frustrated

Discuss practical ways rearrange URLs using mod_rewrite.

Postby Guest » Tue Dec 11, 2001 9:52 am

Here is what I have for an .htaccess file

RewriteEngine On
Options +FollowSymLinks +SymLinksIfOwnerMatch
RewriteBase /
RewriteRule /tests/phpBB/viewforum/(.*)/(.*)/(.*)$ /tests/phpBB/viewforum.php?$1=$2&$3 [T=application/x-httpd$
RewriteRule /tests/phpBB/index/(.*)/(.*)$ /tests/phpBB/index.php?viewcat=$1 [T=application/x-httpd-php,L]
RewriteRule ^(.*)/(.*)$ /bb_profile.php?viewcat=$1 [T=application/x-httpd-php,L]
RewriteRule ^(.*)/(.*)$ /bb_profile.php?mode=$1 [T=application/x-httpd-php,L]
RewriteRule ^(.*)/(.*)/(.*)$ /bb_profile.php?mode=$1&$2=$3 [T=application/x-httpd-php,L]

The best I can get this to do is when asking for a file, the forum (phpBB) gives an error that says that forum doesn't exist.

I'm putting this into a sub directoy, /tests/phpBB...any tips or ideas? thanks much, this seems like a cool forum :smile:
Guest
 

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron