Welcome to WebmasterWorld Guest from 22.214.171.124
I was hoping I can get some help on the following issue. I'm using a heavily modified version of phpBB2 to run an entire site, and am using an additional file (portal.php) to act as the true frontpage for the site.
Problem is, many people already use index.php for the frontpage, and this is causing some problems. My vision was to use mod_rewrite to alter these on the fly. Basically, to use two references as following:
RewriteRule ^viewcat.php(.*) /index.php$1
RewriteRule ^index.php(.*) /portal.php$1
The idea is that all references to index.php actually push to the portal.php file, and all references to viewcat.php actually push to the (real) index.php ...
Is this feasible/possible?
I think you should change the order of the two statements, so that the index match comes first and the viewcat second. Otherwise there's a chance that you would get this:
viewcat.php to index.php to portal.php
- and that is not what you want.