Skip to content

Instantly share code, notes, and snippets.

@claudioc
Created May 9, 2013 09:42
Show Gist options
  • Save claudioc/5546590 to your computer and use it in GitHub Desktop.
Save claudioc/5546590 to your computer and use it in GitHub Desktop.
[DSL O2] How to remove the redirection to o2suchedns.aol.de and make it point to Google
# Put this line in your /etc/hosts
127.0.0.1 o2suchedns.aol.de
# Create a VirtualHost like this and restart Apache
<VirtualHost *:80>
ServerName o2suchedns.aol.de
RewriteEngine On
RewriteCond %{QUERY_STRING} query=(.*)
RewriteRule ^aol/afe_x$ https://www.google.com/search?q=%1 [L]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment