wildcard .htaccess 301

Discussion in 'Search Engine Optimization' started by romance, Jul 12, 2007.

  1. #1
    Hi All

    i'm trying to implement a 301 redirect using .htaccess for which i'd normally use

    RewriteCond %{HTTP_HOST} ^domain\.com [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

    which is fine for single domains. The issue i have is that theres 100 parked domains for that domain and i dont want apache haiving to process each one by itself. Is there a way to make domain.com wildcard as well?

    thanks in advance!
     
    romance, Jul 12, 2007 IP