View Single Post
Old 06-25-2005, 07:20 AM  
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
to redirect to a page:

RewriteEngine on
RewriteCond %{HTTP_HOST} *\.edu
RewriteRule ^(.*)$ http://www.yourdomain.com/404.html$1 [R,L]

to just drop the request:

RewriteEngine on
RewriteCond %{HTTP_HOST} *\.edu
RewriteRule ^(.*)$ - [L]

"should" work. You may need to tweak the RewriteCond string match.
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote