apache2-catalan-redirect.conf
· 234 B · Text
Raw
# Default /help URL (replace help with your custom alias if needed; NOT for custom domains)
RewriteEngine On
RewriteRule ^help/es-ca(/.*)?$ /help/ca$1 [R=301]
# for custom URLs
RewriteEngine On
RewriteRule ^es-ca(/.*)?$ /ca$1 [R=301]
| 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
· 200 B · Text
Raw
# Default /help URL (replace help with your custom alias if needed; NOT for custom domains)
rewrite ^/help/es-ca/(.*)$ /help/ca/$1 permanent;
# for custom URLs
rewrite ^/es-ca/(.*)$ /ca/$1 permanent;
| 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; |