AkshayGulhane/hyde/master/templates/default_html5/content/.htaccess - Htaccess File

AkshayGulhane/hyde/master/templates/default_html5/content/.htaccess

{% if GENERATE_CLEAN_URLS %}
RewriteEngine on
RewriteBase {{ node.site.settings.SITE_ROOT }}

{% hyde_listing_page_rewrite_rules %}

# listing pages whose names are the same as their enclosing folder's
RewriteCond %{REQUEST_FILENAME}/$1.html -f 
RewriteRule ^([^/]*)/$ %{REQUEST_FILENAME}/$1.html

# regular pages
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^.*$ %{REQUEST_FILENAME}.html

{% endif %}

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache