Skip to content

Obviate.io

To anticipate and prevent

  • Home
  • About Us
  • History
  • Privacy Policy
  • Toggle search form

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: Done!
Next Post: Books for gun training

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.

July 2005
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Jun   Aug »

Copyright © 2022 Obviate.io

Powered by PressBook Premium theme