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

XBOX’s – Fun for the entire … Disection Linux
WebDAV Clients – Linux & OSX Apple
GOD CNET IS DUMB Linux
Few changes Linux
Setting up PowerDNS Server with PowerDNS Recursor Linux
Gmail’s Space Increase Linux

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © 2026 Obviate.io.

Powered by PressBook Masonry Dark