How to Redirect a Parked Domain name to a Specific URL


Sometimes you need to get a domain for promotion that you are running. Other times, you’ve got a domain and don’t know what to do with it yet. In those cases, you may just want to park the domain and then direct traffic to it to a specific URL that you may own. It’s really easy to do this with some htaccess. Here’s how you do it:

# Redirects
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?$ [NC]
RewriteRule ^(.*)$ [L,R=302]

We use 302 to tell the browser that this won’t be permanent. Some day we plan to do something with this domain but we don’t know what yet. Or maybe we just plan on using it for other purposes. Either way, this tell’s Google and the browser to check back because the circumstances may change. If we want to designate this as a permanent redirect, we’d use 301.

The $ after says that anything after could be passed as a variable but since we don’t have a trailing $1 in the RewriteRule it’s not being used. We are specifically taking anything at (or and sending it directly to

We could have done this:

RewriteCond %{HTTP_HOST} ^(www.)?$ [NC]
RewriteRule ^(.*)$$1 [R=302,L]

Where anything after would be attached at the end of For example: would be redirected to

See how easy it is? Pretty cool.