-
Notifications
You must be signed in to change notification settings - Fork 1
Find redirect solution for the Security Guide #42
Comments
① `Options +Indexes # Fix broken search in the singlehtml versions # If searching, bring the user away from the singlehtml # (where the search would only give an error 404) and direct him to the default version. # See https://forge.typo3.org/issues/60838 RedirectMatch permanent (.*)/singlehtml/search\.html $1/search.html RewriteEngine On RewriteRule (GeneralInformation|TypesOfThreats|HackedSite|Backups|Introduction|SecurityTeam|GeneralGuidelines|GuidelinesAdministrators|GuidelinesIntegrators|GuidelinesEditors)(.*) https://docs.typo3.org/typo3cms/CoreApiReference/Security/$1/ [R=301,L] RewriteRule singlehtml(.*) https://docs.typo3.org/typo3cms/CoreApiReference/singlehtml/ [R=301,L] RewriteRule (stable/)?(.*) https://docs.typo3.org/typo3cms/CoreApiReference/$1Security/$2 [R=301,L] # Do not rewrite URLs starting with any valid version number followed by a slash RewriteRule ^(([0-9]+)(\.[0-9]+)(\.[0-9]+)*)/(.*)$ - [L] # Do not rewrite URLs starting with the provided words RewriteRule ^(latest|packages|stable)(.*)$ - [L] RewriteRule ^manuals.json(.*)$ - [L] # Rewrite the rest into the folder stable/ RewriteRule ^(.*)$ stable/$1 ② Options +Indexes RewriteEngine On # Do not rewrite URLs starting with any valid version number followed by a slash RewriteRule ^[0-9]+(\.[0-9]+)(\.[0-9]+)*(-dev)?/(.*)$ - [L] # Do not rewrite URLs like '8-dev/' RewriteRule ^[0-9]+-dev/(.*)$ - [L] # Do not rewrite URLs starting with the provided words RewriteRule ^(latest|master|packages|stable)(.*)$ - [L] # still needed? RewriteRule ^manuals.json(.*)$ - [L] # Rewrite other cases into the folder stable/ RewriteRule ^(.*)$ stable/$1 |
This ticket is waiting for somebody willing to invest time. Otherwise I'll close it some time soon. |
Please don't close. |
I do think the above rule should have worked: |
Let's proceed within #37 |
#37 (comment)
Related: #37
The text was updated successfully, but these errors were encountered: