Hi,
I've been looking and reading for hours and even this post: [
webmasterworld.com ], which reads similar to my problem, did not really help me.
So, what I need is a set of rewrite conditions/ rules to rewrite my .php file extensions to a virtual folder at best I'm also forcing a trailing slash.
To make it a little extra complicated: the website is 3 lingual. Each language has it's own directory. Apart from that, there are no other directories.
example.com/english/
example.com/french/
example.com/spanish/
For this example I will use the english dir:
example.com/english/ contains about 10 .php-files. What I wanna do is to display those .php-files as virtual folders.
example.com/english/index.php -> example.com/english/
example.com/english/news.php -> example.com/english/news/
example.com/english/press.php -> example.com/english/press/
etc.
My .htaccess still is quite basic:
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
# redirect all non-canonical hostname requests to canonical hostname
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
Everything I've tried so far did not work...I don't know why, as I have some experience with rewriting...but this time, I need your help.
Thanks in advance.