Simple .htaccess question
I'm new to .htaccess and was wondering whether my .htaccess file is correct.
My homepage is on index.html. It's a static HTML site that makes use of php include on a few of the HTML pages.
This is the content of my .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .+ %{DOCUMENT_ROOT}/index.php [L]
AddType application/x-httpd-php .htm .html
I don't really understand the code and actually copied it from a tutorial website. I have a feeling the RewriteRule line is not correct. I should change the "index.php" to "index.html" right?
As for the AddType line, does it mean run all .htm and .html file as php?
Thank you for your help!
Ask the Internet Marketing Geek <-- Happy to help with technical challenges
MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy