Created
August 19, 2019 14:53
-
-
Save pascalknecht/7e69290ca5a17042ef17f3a995d5330a to your computer and use it in GitHub Desktop.
htaccess rules
This file contains hidden or 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
# Redirect URL with query string to another URL | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} / | |
RewriteCond %{QUERY_STRING} ^lang=en | |
RewriteRule ^(.*)$ https://example.ch/ [QSD,R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment