Forum Moderators: phranque

Message Too Old, No Replies

.htaccess help

         

DynamicNiches

1:40 am on Jun 8, 2006 (gmt 0)

10+ Year Member



On one of my forums I have had a portal integrated with phpbb as my index page.

For example - if you type in this forums domain name (www.website.com) you will end up at (www.mysite.com/forums/portal.php) as the index page.

I still want to use portal.php as my index page but I want to use a command in .htaccess that will automatically cut off the "/forums/portal.php" part so whenever I type in www.mysite.com that it displays www.mysite.com in the browser window instead of www.mysite.com/forums/portal.php

I already have the following command inside my /forums directory's .htaccess file.
DirectoryIndex portal.php index.php

Pfui

5:42 pm on Jun 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sounds like you're talking about URL rewriting. Check out Jim Morgan's "Apache Web Server [webmasterworld.com]" forum, its Library [webmasterworld.com] and posts. Bone up, and then take your best shots at coding. No go? Then per the Charter [webmasterworld.com], post what you want to do and what didn't work for you (plus error log info), and you'll get more specific help more quickly. Good luck!