That .htaccess will only work if mod_access is enabled on an Apache server.
Assuming that it is enabled you can try writing it as this to see if it works:
<Files "*.php">
Order Deny,Allow
Deny from all
</Files>
Vger
That .htaccess will only work if mod_access is enabled on an Apache server.
Assuming that it is enabled you can try writing it as this to see if it works:
<Files "*.php">
Order Deny,Allow
Deny from all
</Files>
Vger
Awesome, the different script worked. Many thanks.
woo hoo.
All that script does is to differentiate the file type from the <Files> command by enclosing it within quotes - but I thought it might work.
Vger
Thank you so much!
I have been looking for a solution to the stylesheet-not-showing-due-to-htaccess problem for ages and thought that it was my server's fault! Adding the quotation marks did the trick!
I just tried adding quotes and renaming my .htaccess1 to .htaccess and the style was lost again. ASo that didn't work for me, but i was very hopeful.
renamed .htaccess again and style is working.
aaahhhhhh!!
Steven
More details:
https://www.zen-cart.com/tutorials/i...hp?article=235
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thanks for the update.
Steven