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

hibernate - How to load global settings frequently used in application in Java -

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

objective c - Ownership modifiers with manual reference counting -