apache - Forwarding third domain url to directory in the main domain -


hullo, forward accesses subdomain blog.xxx.yy directory www.xxx.yy/blog possibly keeping originary address in address field of browser. how may it? tried with:

rewritecond %{http_host} ^blog\.taxiprofessional\.net rewriterule ^([0-9]+)/?$ blog [nc,l] 

but not work.

you can use rule in root .htaccess:

rewriteengine on rewritecond %{http_host} ^blog\.taxiprofessional\.net$ [nc] rewriterule ^((?!blog/).*)$ /blog/$1 [nc,l] 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -