SEO/user friendly URL rewrite rules - what am I overlooking?
I know that Apache rewrite rules are not considered to be very newbie-friendly, but for some reason I keep struggling with them forever. This time I'm trying to do something that I know is rather simple but I can't get it to work and I just don't see it.
Thing is, the language subdir in the URL must be optional and reverts to a default setting if omitted. So both www.domain.tld/xyz.html and www.domain.tld/language/xyz.html should be rewritten correctly (to index.php?etcetera with and without the l=language bit in the query string, respectively).
And I can't figure out how to make it work - I know I'm overlooking something stupidly simple, but I just don't see it.
Any suggestions to point me into the right direction would be appreciated!!
Bookmarks