I have a forum that is currently accessible through the URL:
www.website.com/index.php?app=forums
Instead of that, I would like people to be able to go to:
www.website.com/forum
Here’s the kicker, though – there is already a .htaccess file with the following contents:
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
It seems like this should be possible, but I’m not sure how to do it myself.
Thanks!
Haven’t tested this, but something like this should work. Add this just before the first RewriteCond directive.
Alternatively, you could also do a 301 redirect from /forum to the index.php URL.
By doing this:
However, it looks like you want a proper rewrite so the 1st option is better,