Luke Childs
9 years ago
1 changed files with 7 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||
const redirectRegex = /(?:Redirect\s*(\d*)\s*)(\S*)(?:\s*)(\S*)/g; |
|||
const nginxPattern = |
|||
`location $2 {
|
|||
return $1 $3; |
|||
}`;
|
|||
|
|||
export default htaccessRules => htaccessRules.replace(redirectRegex, nginxPattern); |
Loading…
Reference in new issue