I'm trying to access a partial template via AJAX from a template group but I keep getting a 403 forbidden or 404 not found error.
I'm using the great Ajax-include pattern Jquery script from the Filament Group. This script relies on you specifying the html file you want to retrieve from a data attribute in the template; could that have something to do with why I'm getting a 403/404?
I've tried all combinations of paths to the template but still get the same result. I've also tried naming the full path, including the .group, with no success. If I put the HTML file in the root of the site everything works fine.
All templates have been synced and saved as files.
- Path to templates: /assets/templates/default_site/
- Template group: site.group (default template group)
- Template: footer-resource-menu.html
Template code:
<ul>
<li class="dropdown" data-append="footer-form-webmail.html" data-media="(min-width: 50em)">
<a href="#nowhere" class="dropdown-toggle" data-toggle="dropdown">My Island <b class="caret"></b></a>
</li>
<li>…</li>
</ul>
UPDATE This was due to the .htaccess
file being missing from web root.