Skip to content

Instantly share code, notes, and snippets.

@caasig
Last active November 16, 2015 10:02
Show Gist options
  • Save caasig/5ffcabcc4406bd3746a6 to your computer and use it in GitHub Desktop.
Save caasig/5ffcabcc4406bd3746a6 to your computer and use it in GitHub Desktop.
Root .htaccess for Thelia 2 on shared hosts
<IfModule mod_rewrite.c>
RewriteEngine On
# You need to reconfigure these System Variables in the back office to be a
# subdirectory under assets/
# 1) document_cache_dir_from_web_root
# 2) image_cache_dir_from_web_root
RewriteRule ^assets/(.*)$ web/assets/$1 [L]
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
<?php
require "web" . DIRECTORY_SEPARATOR . "index.php";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment