Skip to content

Instantly share code, notes, and snippets.

@DanielSantoro
Created October 24, 2018 14:08
Show Gist options
  • Save DanielSantoro/2a932abab7ffa4bb5c8a2c09f7e7107d to your computer and use it in GitHub Desktop.
Save DanielSantoro/2a932abab7ffa4bb5c8a2c09f7e7107d to your computer and use it in GitHub Desktop.
Apache Rewrite - Special Characters
# Trying to rewrite:
# https://www.plm.automation.siemens.com/en/about_us/success/case_study.cfm?Component=232169&ComponentTemplate=1481
# to
# https://www.plm.automation.siemens.com/global/en/our-story/customers/wkidea/16678/
#
RewriteCond %{QUERY_STRING} (^|&)Component=232169($|&)
RewriteCond %{QUERY_STRING} (^|&)ComponentTemplate=1481($|&)
RewriteRule ^en/about_us/success/case_study\.cfm$ /global/en/our-story/customers/wkidea/16678/? [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment