MrGeneration revised this gist 9 hours ago. Go to revision
No changes
MrGeneration revised this gist 9 hours ago. Go to revision
No changes
MrGeneration revised this gist 3 weeks ago. Go to revision
No changes
MrGeneration revised this gist 3 weeks ago. Go to revision
No changes
MrGeneration revised this gist 3 weeks ago. Go to revision
2 files changed, 12 insertions
apache2-catalan-redirect.conf(file created)
| @@ -0,0 +1,7 @@ | |||
| 1 | + | # Default /help URL (replace help with your custom alias if needed; NOT for custom domains) | |
| 2 | + | RewriteEngine On | |
| 3 | + | RewriteRule ^help/es-ca(/.*)?$ /help/ca$1 [R=301] | |
| 4 | + | ||
| 5 | + | # for custom URLs | |
| 6 | + | RewriteEngine On | |
| 7 | + | RewriteRule ^es-ca(/.*)?$ /ca$1 [R=301] | |
nginx-catalan-redirect.conf(file created)
| @@ -0,0 +1,5 @@ | |||
| 1 | + | # Default /help URL (replace help with your custom alias if needed; NOT for custom domains) | |
| 2 | + | rewrite ^/help/es-ca/(.*)$ /help/ca/$1 permanent; | |
| 3 | + | ||
| 4 | + | # for custom URLs | |
| 5 | + | rewrite ^/es-ca/(.*)$ /ca/$1 permanent; | |