I recently uploaded a PHP theme on my server. It's working fine on any other sections except my home page. For example, when accessing www.mywebsite.com/anything
the theme is working but when on homepage www.mywebsite.com
the server's default page is shown.
I was playing with the htacess RewriteEngine and it was working in some cases but probably not correct. This is what I have so far:
<IfModule mod_rewrite.c>
RewriteEngine on
Options -Multiviews
RewriteCond %{REQUEST_URI} !-d
RewriteCond %{REQUEST_URI} !-f
RewriteRule ^(.*)?$ index.php?a=$1 [QSA,NC,L]
ErrorDocument 404 /new/404.php
</IfModule>
This is making my home page work, but the title is not showing it's saying "Page Not Found" on the title. The page is working and all I'm changing is the two RewriteCond above. They were set to {REQUEST_FILENAME}
but that made my website homepage not work and show the default server page.