homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Need assistance with htaccess
Playnig the shell game with file names

 4:57 am on Sep 12, 2003 (gmt 0)


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:

RewriteEngine On
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?



 1:03 am on Sep 13, 2003 (gmt 0)

Boy, you got me here scratching my head.

I run the same software (phpBB2) for several websites and still can't help you.

Are you sure you have ReWrite working?

ooops-forgot my manners:

Welcome to WebmasterWorld!


 2:46 am on Sep 13, 2003 (gmt 0)

Welcome to WebmasterWorld MLimburg :)

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.


 4:00 am on Sep 14, 2003 (gmt 0)

... And use the [L] flag!


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved