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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -