Hello
I have a stupid problem with my rewrite rules. I have to convince my website that a directory does not exist. I use /en/ and /fr/ variabables to change language but it gives me error because mywebsite/en/ folder does not exist.
This is real file structure:
http://example.com/index.php
http://example.com/cat.php
http://example.com/dog.php
This is how i change language:
http://example.com/en/index.php
http://example.com/en/cat.php
http://example.com/en/dog.php
http://example.com/fr/index.php
http://example.com/fr/cat.php
http://example.com/fr/dog.php
I simply have to get the URL with /en/ and /fr/ and after i can show the page. Basically i want to redirect example.com to example/$1/something.php. Thank you.