Using ‘DirectoryIndex’ : Cache Enabler stops working
-
I ran into a problem I have not been able to fix. I usually remove the root index.php from WordPress installs for extra security and force Apache to look for a differently named file.
For example in .htaccess
# Load blog.php first if it exists.
DirectoryIndex blog.php index.php index.html
This works fine on WordPress so long as you also use
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^blog\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog.php [L]
</IfModule>
# END WordPressWhen doing this though, cache enabler never creates a cache. No I’m not logged in.
Do you have a fix in mind or any solution to this, because to me that seems like an oversight to be requiring index.php to be your main/first call to action on Apache.
I can think of a few more examples where you wouldn’t want an index.php file, but potentially still benefit from the caching of cache enabler.
??
The page I need help with: [log in to see the link]
- The topic ‘Using ‘DirectoryIndex’ : Cache Enabler stops working’ is closed to new replies.