1.
http://huameigu.XXX.cc/
=>>
Http://www.XXX.cc/index.php/huameigu
--------------------------------------------------------
2.
http://futa.XXX.cc
=>>
Http://www.XXX.cc/index.php/zyft
--------------------------------------------------------
The pseudo-static of the first one has succeeded. But there's something wrong with the rules I wrote.
It's written like this.
Rewriteengine on rewritecond%{http_host} huameigu. xxx.cc$ [NC] rewriterule ^ (. *) $ index.php/huameigu/$1/[L]
Now is the second one to give pseudo-static, to pass the Great God to guide you!
Reply to discussion (solution)
The original code should be rewrite to the sub-domain, which should be roughly the case
Rewriteengine on rewritecond%{http_host} ^huameigu. xxx.cc$ [NC] rewriterule ^ (. *) $ www.xxx.cc/index.php/huameigu/$1 [L]
Oh, oh, that's it.
The original code should be rewrite to the sub-domain, which should be roughly the case
PHP code?123 rewriteengine on Rewritecond%{http_host} ^huameigu. xxx.cc$ [NC] rewriterule ^ (. *) $ www.xxx.cc/index.php/huameigu/$1 [L]
This only makes Huameigu. xxx.cc access is correct.
I want to make FUTA now. xxx.cc access is also normal, and add more level two domain names.