Sorry for my late reply, my pc wouldn't boot anymore, it's temporarily fixed.
@ Jeff Mott: Thanks for your input! That's something new to me, thanks! But, how to use it in my case? Can I use it to redirect http:// to http://www. (and the other way around)? Or can I use it to redirect everything to index.php?request=example?
@ dklynn: I have read many posts from google and did my research so...
1. It's not a bad idea, on the contrary, Google prefers it that way unless you're talking about files (so, with file extension e.g. .jpg, .php, .html, etc)
2. Sorry, I don't really understand what you mean.
3. That's true, but I can't see any other way to test if these modules exist. Do you have an alternative? If this htaccess file would be placed on a server that doesn't meet the requirements for the modules and the if-statements wouldn't be there, it would be far more server-heavy, because it would cause errors... or am I wrong?
4. One of the redirects is commented out. It's this way because it's a template, it must contain all necessary code that can do both; with www and without. I comment out or remove the lines that aren't needed for a website when the website is finished.
@ Force Flow: Thanks for your reply! I am using my own framework, it takes the request parameter as its input to the bootstrap file.
Sorry again for my late response,