lego11
03-12-2006, 05:50 PM
I need some help writing a rewriterule for my .htaccess, heres what it needs to do.
a url ie:
www.domain.com/firedude/ or www.domain.com/firedude
would get directed (without the user knowing) to
www.domain.com/team/file.php?url=firedude
and
www.domain.com/firedude/contactus.html
would get directed to
www.domain.com/team/file.php?url=firedude&pg=contactus
then say
www.domain.com/firedude/contactus.html?edit=true
gets directed to
www.domain.com/team/file.php?url=firedude&pg=contactus&edit=true
...all without the user's browser address changing, with the use of the [L] flag I suppose.
Problems i've run into basicaly deal with real files/folders i'll need to access such as
www.domain.com/images/file.gif etc..
or
www.domain.com/signup.php
One last but,
firedude is going to change - ie url's will be domain.com/firecat or domain.com/frenchfry/ etc. none of the sub directories actualy exist execpt for the /images/ directories.
I'll need to write a rule that somehow knows not to apply the above rule to anything in the images or test directories or to any files in the root directory.
a url ie:
www.domain.com/firedude/ or www.domain.com/firedude
would get directed (without the user knowing) to
www.domain.com/team/file.php?url=firedude
and
www.domain.com/firedude/contactus.html
would get directed to
www.domain.com/team/file.php?url=firedude&pg=contactus
then say
www.domain.com/firedude/contactus.html?edit=true
gets directed to
www.domain.com/team/file.php?url=firedude&pg=contactus&edit=true
...all without the user's browser address changing, with the use of the [L] flag I suppose.
Problems i've run into basicaly deal with real files/folders i'll need to access such as
www.domain.com/images/file.gif etc..
or
www.domain.com/signup.php
One last but,
firedude is going to change - ie url's will be domain.com/firecat or domain.com/frenchfry/ etc. none of the sub directories actualy exist execpt for the /images/ directories.
I'll need to write a rule that somehow knows not to apply the above rule to anything in the images or test directories or to any files in the root directory.