Skip to content

Obviate.io

To anticipate and prevent

mod_rewrite

Posted on 2005-07-16 By Jon No Comments on mod_rewrite

So I’ve gotten into a kick recently w/ mod_rewrite. It really is very awesome if you’ve never used it. Its extremly handy and not that difficult to use. I also found this handy cheat sheet. I’ve set up two mod_rewrites recenetly. One is forcing all traffic from Snowflakey.com (I’d link but you’d just end up here again) to here. The second is to force all traffic to use the same address (http://snowulf.com). I thought I’d post the code below (note: this code REMOVES all subdomains including www. instead of preprending them):

RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^snowulf\.com<br />
RewriteRule ^(.*)$ /$1 [R=302,L]

Linux

Post navigation

Previous Post: Averatec – Still Going
Next Post: Not a fan of Debian Unstable

Related Posts

World Of Warcraft Under Linux Linux
American Drinking Age Linux
Google Earth Flight Sim Linux
S9Y Linux
Taking Linux Mint 18.1 “Serena” for a spin DevNull
Automated Screen Launch Code

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2026 Obviate.io.

Powered by PressBook Masonry Dark