Sunday, February 9, 2014

Magento 403 Forbidden at /.html

The Magento installation I've been working on has a somewhat unique property - many of the products don't have names. Magento normally uses the names to generate rewrite URLs, so that causes a weird quirk: The first product with no name gets a url like store.example.com/.html

Apache2 has an explicit DENY for files beginning with '.ht' that can be overridden in your .htaccess:

###########################################
## Fixing /.html
<Files ~ "^\.html">
    Order allow,deny
    Allow from all
    Satisfy any
</Files>
HTH someone else!

No comments: