Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to translate the example URL to the needed one?



I have:

RewriteEngine on
RewriteCond %{HTTP_HOST} (\w+) [NC]
RewriteRule .* [L]

however, the browser says "it says sorry this site is not currently available" it's form

share|improve this question

The browser saying "this site is not available" is not promising, you should (if you can) enable more verbose logging on the server side to see exactly what is happening. You should also paste both the From and To URLs into this useful header analysis webtool and add the details they give you into your question. It will help determine if the error you are getting is a "dns says there is no such URL" or a "server is misconfigured" error, or... whatever :)

Regarding the RewriteCond/Rule you have, as noted in this forum post you need to should escape those periods in your RewriteCond, and make sure that you explicitly call a redirect instruction (assuming you want it permanent vs temp) and may as well specify 'No case' too:

RewriteEngine on
RewriteCond %{HTTP_HOST} (\w+)\.at\.domain\.com [NC]
RewriteRule .* [R=301,NC,L]

Confirm too that just going directly to does work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.