I have a site and a message board, and the message board already uses the phpbb premod.
the main site has pages like
example.com/index.php
example.com/something.php
example.com/other_thing.php
example.com/something_else.php
they are all php-s.
the message board is located under /forums/ but the .htaccess is in the root directory.
What I want is to write a few lines in the .htaccess to rewrite the php-s in the root directory (and only in the root directory!) to look like a directory, like example.com/something/ etc...
I don't want it to redirect index.php to example.com/index/ but to simply example.com/
All the other php-s should look like directories in the root.
It shouldn't interfere with content in subdirectories as there are a lot of them and there are different sites under them.
Also the php-s are indexed by google (with a decent ranking) so it would be preferrable to 301 redirect them rather then losing their ranking.
Can somebody help me to write this rewriterule? I'm not so experienced with mod_rewrite and a few of you are quite experts on the subject, so I'm asking for help.

English |
French

