About the apache site network address? Subfile folder to subdomain subdomain!

Update

suppose there is a domain named abc.com
I rewrite the domain using htaccess

DocumentRoot Web root is /

I rewrote the / src/blog.php file to abc.com/blog
, so I hid the filename

.
RewriteRule ^blog$ src/blog.php

I went to the linode server to send an A directory subdomain to the server
called b.abc.com .
points to the same web site root directory as /
, that is, using abc.com will be the same as b.abc.com directory

.

question

I want to rewrite the / app/index.php file to b.abc.com
, that is to say, b.abc.com is the same as / app/index.php
. How can this be implemented in htaccess?


you can't do this kind of thing, or Apache is very difficult to do.

I once encountered this kind of need and gave up after a week. The reason is that it is almost difficult for you to rewrite the link of the page.

these paths may be written dead in the html code of the page. Although apache has a mod_proxy_html module that can help you rewrite the link part of the html code, it is essentially based on the principle of regular substitution. In addition, if the page link style is not consistent, this rule will be difficult to maintain. Not to mention that the web page can be accessed normally after rewriting html link

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38838-4115e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38838-4115e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?