mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
Merge pull request #43 from silverstripe/frameworkrewrite
Fixes to framework rewrite
This commit is contained in:
commit
2cb73240b8
@ -16,6 +16,10 @@
|
|||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_URI} !^framework/main\.php
|
RewriteCond %{REQUEST_URI} !^framework/main\.php
|
||||||
RewriteRule ^sapphire/?(.*) http://doc.silverstripe.org/framework/$1 [R=301,L]
|
RewriteRule ^sapphire/?(.*) http://doc.silverstripe.org/framework/$1 [R=301,L]
|
||||||
|
|
||||||
|
#Rewrite framework to the new base url
|
||||||
|
RewriteCond %{REQUEST_URI} ^/?framework/en/
|
||||||
|
RewriteRule ^framework/en/(.*)$ /en/$1 [R=301,NC,QSA,L]
|
||||||
|
|
||||||
# DokuWiki rewrite rules: Need to happen before other rules in order to redirect /doku.php?id=<pagename>
|
# 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
|
# to /pagename, which can then be matched by the legacy rewrite rules further down
|
||||||
|
Loading…
Reference in New Issue
Block a user