Hi, 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!
I am newbie. Can anyone help me to set .htaccess please. when i try to set ir, it shows error.thanks in advance.