forked from silverstripe/api.silverstripe.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request silverstripe#127 from creative-commoners/p…
- Loading branch information
1 parent
a3da87e
commit 9b6cbf8
Showing
19 changed files
with
416 additions
and
294 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<IfModule mod_rewrite.c> | ||
SetEnv HTTP_MOD_REWRITE On | ||
RewriteEngine On | ||
|
||
|
||
### =============== Legacy redirects =============== | ||
|
||
# Packages no longer exist | ||
RewriteCond %{REQUEST_URI} ^(.*)en/.*/package-.*\.html [NC] | ||
RewriteRule ^(.*)$ %1 [L,R=302] | ||
|
||
# 2.x no longer exists | ||
RewriteCond %{REQUEST_URI} ^(.*)en/2[.] [NC] | ||
RewriteRule ^(.*)$ %1 [L,R=302] | ||
|
||
# Redirect non-languaged minor versions to major version, e.g. /3.1/DataObject.html to /3/DataObject.html | ||
RewriteCond %{REQUEST_URI} ^(.*)(\d)[.]\d/(.*)$ [NC] | ||
RewriteRule ^(\d)\.\d/(.*)$ %1%2/%3 [L,R=302] | ||
|
||
# Redirect language minor version to major version, e.g. /en/3.1/File.html to /3/File.html | ||
RewriteCond %{REQUEST_URI} ^(.*)en/([\d]+)[.][\w.]+/(.*)$ [NC] | ||
RewriteRule ^(.*)$ %1%2/%3 [L,R=302] | ||
|
||
# Class redirect. E.g. | ||
# /4/class-SilverStripe.AssetAdmin.Forms.FileSearchFormFactory.html | ||
# /4/SilverStripe/AssetAdmin/Forms/FileSearchFormFactory.html | ||
RewriteCond %{REQUEST_URI} ^(.*)([\w.]+)/class-([\w]+)\.html [NC] | ||
RewriteRule ^(.*)$ %1%2/%3.html [L,R=302] | ||
RewriteCond %{REQUEST_URI} ^(.*)([\w.]+)/class-([\w]+)\.([\w]+)\.html [NC] | ||
RewriteRule ^(.*)$ %1%2/%3/%4.html [L,R=302] | ||
RewriteCond %{REQUEST_URI} ^(.*)([\w.]+)/class-([\w]+)\.([\w]+)\.([\w]+)\.html [NC] | ||
RewriteRule ^(.*)$ %1%2/%3/%4/%5.html [L,R=302] | ||
RewriteCond %{REQUEST_URI} ^(.*)([\w.]+)/class-([\w]+)\.([\w]+)\.([\w]+)\.([\w]+)\.html [NC] | ||
RewriteRule ^(.*)$ %1%2/%3/%4/%5/%6.html [L,R=302] | ||
RewriteCond %{REQUEST_URI} ^(.*)([\w.]+)/class-([\w]+)\.([\w]+)\.([\w]+)\.([\w]+)\.([\w]+)\.html [NC] | ||
RewriteRule ^(.*)$ %1%2/%3/%4/%5/%6/%7.html [L,R=302] | ||
RewriteCond %{REQUEST_URI} ^(.*)([\w.]+)/class-([\w]+)\.([\w]+)\.([\w]+)\.([\w]+)\.([\w]+)\.([\w]+)\.html [NC] | ||
RewriteRule ^(.*)$ %1%2/%3/%4/%5/%6/%7/%8.html [L,R=302] | ||
|
||
### ============= End Legacy redirects ============= | ||
|
||
# Lookup script (used to be a SS app, now just a simple script) | ||
# E.g. http://api.silverstripe.org.loc/search/lookup/?q=SilverStripe\ORM\HasManyList&version=4&module=framework | ||
RewriteCond %{REQUEST_URI} ^(.*)search/lookup [NC] | ||
RewriteRule ^/?search/lookup(/|$) %1search/lookup.php [L,R=302,QSA] | ||
|
||
# Symlink to 5 index.html - default major version | ||
RewriteCond %{REQUEST_URI} ^(.*)$ [NC] | ||
RewriteRule ^/?$ %15/index.html [R=302,L] | ||
|
||
# Serve docs in htdocs | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_URI} .* [NC] | ||
RewriteRule ^(.*)$ htdocs/$1 | ||
|
||
# 404 handling | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule .* errors/404.html | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
infrastructure: ^3 | ||
php_settings: | ||
version: 8.1 | ||
cli: | ||
max_execution_time: 0 | ||
shared_dirs: | ||
mysite: | ||
data: {} | ||
htdocs: {} | ||
crons: | ||
mytask: | ||
time: "0 3 * * *" | ||
command: "/var/www/mysite/www/makedoc.sh | logger -t SilverStripe_cron" | ||
vhost: "mysite" | ||
url_rules: | ||
mysite: | ||
- '^.*': 'apache' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square70x70logo src="/mstile-70x70.png"/> | ||
<square150x150logo src="/mstile-150x150.png"/> | ||
<square310x310logo src="/mstile-310x310.png"/> | ||
<wide310x150logo src="/mstile-310x150.png"/> | ||
<TileColor>#005b94</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
"4": "4.x", | ||
"3": "3.x" | ||
}, | ||
"default_version": "5", | ||
"paths": { | ||
"www": "htdocs", | ||
"cache": "data/cache", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!doctype html> | ||
<!--[if lt IE 7 ]><html lang="en-GB" class="no-js lte6 lte7 lte8 lte9 lte10"><![endif]--> | ||
<!--[if IE 7 ]><html lang="en-GB" class="no-js lte7 lte8 lte9 lte10"><![endif]--> | ||
<!--[if IE 8 ]><html lang="en-GB" class="no-js lte8 lte9 lte10"><![endif]--> | ||
<!--[if IE 9 ]><html lang="en-GB" class="no-js lte9 lte10"><![endif]--> | ||
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en-GB" class="no-js"><!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/> | ||
<title>Page not found » SilverStripe API docs</title> | ||
<link rel="stylesheet" type="text/css" href="/errors/error-styles.css"> | ||
</head> | ||
<body> | ||
<div class="gif_holder"> | ||
<div class="color_overlay"> | ||
<div class="text_container"> | ||
<h2>Whoa 404, either we broke something or you had a typing mishap :-/</h2> | ||
<h3> Let's go back <a href="/">home.</a></h3> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.