Hello,
I can't figure out what I'm doing wrong.
Using the Include Editor, if I place this code into either the "Pre Main Include" or "Pre VirtualHost Include" or "Post VirtualHost Include" sections (All Versions):
I should specifically *NOT* be able to see this file:
www.mydomain.com/wordpress/readme.html
...but I can...
(and, yes, I restarted Apache ...version 2.2.24)
This has worked perfectly on other Apache servers when placed into the httpd.conf file.
RELATED:
Also, directives like the following do not work for blog.myotherdomain.com (where... myotherdomain.com/blog is re-directed to the subdomain in the local .htaccess file)
...but it works correctly for www.mydomain.com/blog
Note: I've tried it with and without the <IfModule> wrap and makes no difference either way.
What am I doing wrong?
Thanks!
-Mike
I can't figure out what I'm doing wrong.
Using the Include Editor, if I place this code into either the "Pre Main Include" or "Pre VirtualHost Include" or "Post VirtualHost Include" sections (All Versions):
Code:
<filesMatch "^(wp-config\.php|license\.txt|readme\.html?)">
order allow,deny
deny from all
</filesMatch>
www.mydomain.com/wordpress/readme.html
...but I can...
(and, yes, I restarted Apache ...version 2.2.24)
This has worked perfectly on other Apache servers when placed into the httpd.conf file.
RELATED:
Also, directives like the following do not work for blog.myotherdomain.com (where... myotherdomain.com/blog is re-directed to the subdomain in the local .htaccess file)
...but it works correctly for www.mydomain.com/blog
Code:
<IfModule mod_alias.c>
RedirectMatch 403 install\.php
</IfModule>
What am I doing wrong?
Thanks!
-Mike