I've had a strange experience with htaccess. I tried adding a .htaccess file to a subfolder (2 levels from top) on my website. The purpose was to allow pages from within my domain to access the pages in that folder via internal links, but no access for external links placed outside the domain.
I've used htaccess before at this server without a problem (in folders one level deep), but this time, no matter how I configured the .htaccess, it would not allow a link from within the same domain to open any file in that folder (I get the "Forbidden" message).
And weirder yet, I got an email the next morning from the host saying that my allowable space was 99% used up. When I checked the folder where I put that htaccess file, it had generated a file named "core" that was 14 MB! When I downloaded and examined it, there was a bunch of gibberish (like machine code??). Now admittedly, during the testing phase when I was trying to figure out why it wasn't working, I probably hit the .htaccess file a couple dozen times. But 14 MEGA-bytes?!
If anyone has any insight, I'd be appreciative for the feedback. Am mostly curious why this happened. FYI, below are the various htaccess formats I tried...
I've used htaccess before at this server without a problem (in folders one level deep), but this time, no matter how I configured the .htaccess, it would not allow a link from within the same domain to open any file in that folder (I get the "Forbidden" message).
And weirder yet, I got an email the next morning from the host saying that my allowable space was 99% used up. When I checked the folder where I put that htaccess file, it had generated a file named "core" that was 14 MB! When I downloaded and examined it, there was a bunch of gibberish (like machine code??). Now admittedly, during the testing phase when I was trying to figure out why it wasn't working, I probably hit the .htaccess file a couple dozen times. But 14 MEGA-bytes?!
If anyone has any insight, I'd be appreciative for the feedback. Am mostly curious why this happened. FYI, below are the various htaccess formats I tried...
Code:
<Files *.php>
Order Allow,Deny
Deny from all
Allow from .mydomainname.com
</Files>
<Files *.php>
Order Allow,Deny
Allow from .mydomainname.com
Deny from all
</Files>
<Files *.php>
Order Deny,Allow
Allow from .mydomainname.com
Deny from all
</Files>
<Files *.php>
Order Deny,Allow
Deny from all
Allow from .mydomainname.com
</Files>
<Files *.php>
Order Allow,Deny
Allow from all
</Files>