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
Post a Comment