I need an extremely light framework to house a personal project I'm working on, and decided making the simplest possible myself would be the best option.
So, as I've been told in numerous tutorials, I need to redirect ever page request to my index.php file. That makes perfect sense. What doesn't make sense is why the .htaccess content I've seen a myriad of times across the Internet won't work for me.
Here's what I've got in my .htaccess file
Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?c=$1 [QSA]
1.) localhost/asdf takes me to localhost/index.php?c=asdf (it's doing exactly what I want here)
2.) localhost/asdf/ghjk results in a 404 error
3.) [QSA, L] at the end of index.php?c=$1 results in a 500 error
If anyone has any sort of explanation as to what I've done wrong, or suggestions on what to try, they'd be much appreciated.
Thanks for your time