0

I want to redirect a subdomain to a subfolder on my server. I set the A-Record on my DNS Server for blog.domain.com to go to my main server www.domain.com. Using the following htaccess (ubuntu server) - source:

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

Sadly - it's not working. So I've checked apache's access.log and saw, that the first request the web server received was already www.domain.com and not blog.domain.com.

How can I find out the Request-List to check where the requests got wrong?

Community
  • 1
  • 1
aelias
  • 37
  • 1
  • 6

0 Answers0