Skip to content
Snippets Groups Projects
Verified Commit 47500194 authored by David Beniamine's avatar David Beniamine
Browse files

Add correct htaccess

parent ad4519dd
Branches
No related tags found
No related merge requests found
......@@ -25,6 +25,6 @@ RUN git clone https://framagit.org/framasoft/PrettyNoemieCMS html
WORKDIR /var/www/html
RUN /usr/local/bin/composer.phar install
RUN chown -R www-data /var/www/html/
RUN echo "SetEnv X-FRAMA-SITE" >> /var/www/html/.htaccess
COPY htaccess /var/www/html/.htaccess
RUN a2enmod rewrite
# Enable rewrite engine and route requests to framework
RewriteEngine On
# Some servers require you to specify the `RewriteBase` directive
# In such cases, it should be the path (relative to the document root)
# containing this .htaccess file
#
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(medias/.*)$ /sites/%{HTTP_HOST}/$1 [L]
RewriteRule ^(tmp)\/|\.ini$ - [R=404]
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
SetEnv X-FRAMA-SITE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment