apache - How can I check the requested url before it being redirected on webserver -


i want redirect subdomain subfolder on server. set a-record on dns server blog.domain.com go main server www.domain.com. using 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. i've checked apache's access.log , saw, first request web server received www.domain.com , not blog.domain.com.

how can find out request-list check requests got wrong?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -