Ive been trying to get my sites htacess to provide effective rewrites for my filepages but im doing something wrong. My directory structure is very simple. All my files are in the root folder. So far my htacess looks like this.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example-page.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example-page.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule /front /front_page.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule /redirect /redirect-page.php
This is working when im calling the page like "www.example-page.com/front_page.php (as it would anyway since the file is in the root folder). However the rewrite rules are not working and www.example-page.com/front (and all the rest) are giving me 404 errors. I know this format can work or something very similar to it as ive used it before on other sites. Im quite confused. Does somebody know what im doing wrong?