Forum Moderators: phranque
Options Includes
AddType text/html .html
AddHandler server-parsed .html
ErrorDocument 404 /404.shtml
This works perfectly, allowing me to use the .html extension while using the includes. But I recently installed Wordpress in a subdirectory named /blog and when I try to run Wordpress I get the following error message:
Forbidden
You don't have permission to access /blog/index.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
If I temporarily remove the .htaccess file from the root directory the blog works fine, but of course my includes on the main site stop working. Is there any way to make this work without having to rename all of my existing pages to use the .shtml extension? This site has several hundred pages, many of which rank well in Google so I would prefer to leave the extensions as they are.
Your help will be much appreciated! Thanks
Options +Includes
AddType text/html .html
AddHandler server-parsed .html
ErrorDocument 404 /404.shtml
Defining Options without any plus or minus prefix invalidates any previously defined Options directive, but by using +Includes, tells the Apache to inherit everything from its parent, only add Includes (if it was not present yet). See [httpd.apache.org...] for more information.