Two-level domain name pseudo-static problem, ask to help to see the past!

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.