Home htaccess RewriteRule passes index.php instead of string
 So I'm trying to learn about .htaccess RewriteRules and am facing the following issue: "/home" should open "index.php?page=home" and I have a php $_GET['page'] inside "index.php", but it passes "index.php" instead of "home" every time. Here are the files .htaccess RewriteEngine On RewriteRule ^/?(.+)/?$ index.php?page=\$1 [L] index.php PHP part The output is always: File not found: index.php.php I face this issue on both: web-server and apache. Any suggestions? I'll update my question with more info if necessary.