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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -