Skip to content

Instantly share code, notes, and snippets.

@Zegnat Zegnat/.htaccess
Last active Apr 5, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.