mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
FIX: Update .htaccess_live so this app works with our deployment system
This commit is contained in:
parent
2aa3afd891
commit
06c35eb976
@ -14,8 +14,7 @@
|
||||
|
||||
# Legacy rewrite from sapphire/ to framework/ namespace
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_URI} !^sapphire/main\.php
|
||||
RewriteRule ^sapphire/?(.*) http://doc.silverstripe.org/framework/$1 [R=301,L]
|
||||
RewriteCond %{REQUEST_URI} !^framework/main\.php
|
||||
|
||||
# DokuWiki rewrite rules: Need to happen before other rules in order to redirect /doku.php?id=<pagename>
|
||||
# to /pagename, which can then be matched by the legacy rewrite rules further down
|
||||
@ -336,7 +335,7 @@
|
||||
RewriteCond %{REQUEST_URI} ^(.*)$
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt)$
|
||||
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
|
||||
RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
|
||||
</IfModule>
|
||||
|
||||
ErrorDocument 404 /assets/error-404.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user