I'm trying to rewrite the file
view-forums.php?page=community-forums§ion=2846
I have made a rewrite row in my .htaccess file and it's the following:
RewriteRule ^forums/(.*)/(.*) view-forums.php?page=$1§ion=$2
The url should then be http://localhost/forums/community-forums/2846 but it doesn't work when I visit it. It sends me to an error page instead, any ideas?
My full htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*) index.php?page=$1&id=$2
RewriteRule ^forums/(.*)/(.*) view-forums.php?page=$1§ion=$2
RewriteRule ^media$ media.php
RewriteRule ^about-us$ about.php
RewriteRule ^forums$ main-forums.php