Skip to content

Instantly share code, notes, and snippets.

@Zegnat
Last active April 5, 2017 00:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zegnat/6586557 to your computer and use it in GitHub Desktop.
Save Zegnat/6586557 to your computer and use it in GitHub Desktop.
This emulates https://github.com/lazd/mdn.io/ in a 2 line .htaccess file. Compatible with any Apache server with mod_alias enabled.
RedirectMatch 303 /(.+)$ https://duckduckgo.com/?q=!+site:developer.mozilla.org+$1
Redirect 303 / https://developer.mozilla.org/en-US/docs/JavaScript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment