Welcome to WebmasterWorld Guest from 54.147.238.62

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Need assistance with htaccess

Playnig the shell game with file names

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

New User

10+ Year Member

joined:Sept 12, 2003
posts:4
votes: 0


Howdy,

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 Sept 13, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 1, 2002
posts:1017
votes: 2


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 Sept 13, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 15, 2003
posts:2408
votes: 5


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.
/claus

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

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


... And use the [L] flag!

Jim

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members