diff --git a/createlinks b/createlinks index ee3c5ef..80019a1 100644 --- a/createlinks +++ b/createlinks @@ -5,6 +5,7 @@ use esmith::Build::CreateLinks qw(:all); # Templates to expand templates2events("/etc/e-smith/sql/init/limesurvey", qw(bootstrap-console-save webapps-update)); templates2events("/usr/share/limesurvey/application/config/config.php", qw(bootstrap-console-save webapps-update)); +templates2events("/usr/share/limesurvey/.htaccess", qw(bootstrap-console-save webapps-update)); safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/limesurvey/application/config/config.php/template-begin"); safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/limesurvey/application/config/config.php/template-end"); diff --git a/root/etc/e-smith/templates/usr/share/limesurvey/.htaccess/10All b/root/etc/e-smith/templates/usr/share/limesurvey/.htaccess/10All new file mode 100644 index 0000000..e9b59c1 --- /dev/null +++ b/root/etc/e-smith/templates/usr/share/limesurvey/.htaccess/10All @@ -0,0 +1,14 @@ + + RewriteEngine on +{ +my $alias = $limesurvey{'AliasOnPrimary'} || 'enabled'; +if ($alias ne 'disabled'){ + $OUT .= " RewriteBase /limesurvey\n"; +} +else{ + $OUT .= ''; +} +} + RewriteCond %\{REQUEST_FILENAME\} !-f + RewriteRule . index.php +