Commit df562689 authored by anarcat's avatar anarcat Committed by anarcat

fix redirection with non-clean urls sites by using mod_rewrite instead of mod_alias

parent 9ce2679e
......@@ -6,7 +6,9 @@
ServerName <?php print $site_url; ?>
RedirectMatch ^(.*)$ <?php print $redirect_url ?>
RewriteEngine on
# the ? at the end is to remove any query string in the original url
RewriteRule ^(.*)$ <?php print $redirect_url ?>?
<?php if (is_array($site_aliases)) :
foreach ($site_aliases as $alias_url) : ?>
......
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