Commit 835bcbe4 authored by anarcat's avatar anarcat Committed by anarcat

#275022 - add a /files -> /sites/fqdn/files rewrite rules so that

files url stay consistent across site renames and clones
parent b482ae8a
......@@ -150,6 +150,9 @@ DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine on
# allow files to be accessed without /sites/fqdn/
RewriteRule ^files/(.*)$ /sites/%{HTTP_HOST}/files/$1 [L]
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment