apache - How to do an URL rewrite that works with a pre-existing .htaccess file? -


I have a platform that is currently available through the URL:

Www.websitecom / index.php? App = forum

Instead, I want people to be able to go here:

  & lt; Ifmodule mod_rewrite.c & gt; Option - Multi Views RewriteEngine RewriteBase / RewriteCond on% {REQUEST_FILENAME}! -f Rewrite Convert% {REQUEST_FILENAME}! -d rewriteable /index.php [L] & lt; / IfModule & gt;  

It seems that it should be possible, but I'm not sure how to do it.

Thank you!

This has not been tested, but something like that should be done. Add it before the first Rev.Directivity.

  RewriteRule ^ forum $ /index.php?app=forums  

Alternatively, you redirect from a 301 / forum to index.php URL .

By doing this:

  301 / redirect the forum "http://www.website.com/index.php?app = forum  

However, it seems that you want to make a proper rewrite, so the first option is better,


Comments