Rewriterule hidden file name problem ...

Source: Internet
Author: User
#RewriteRule ^([^./]+)/?$ $1.php [L]

I have a Web site that's called xxx.com, and it's called XXX.
The FTP path is
home2/*/public_html/xxx/

Because I didn't use it in XXX catalogue.#RewriteRule ^([^./]+)/?$ $1.php [L]
So when my other main web site (home2/*/public_html/) joins this code
Led me into the xxx.com will become 404
Must add index.php to be normal.
This is what he has to add my xxx to this code ... But I didn't use this code in XXX
So he read xxx.com into Xxx.com/index, so he'll be 404.
Please ask this rewriterule how to change the right? Don't affect other records!

I'm now doing this by adding in the public_html/xxx/.
Rewriterule ^index$ index.php [L]
You can coexist in this way. But I don't know what's going to happen.
My only one by one sites do not have hidden file name is xxx so things suddenly .... I didn't expect to be like this.

Reply content:

#RewriteRule ^([^./]+)/?$ $1.php [L]

I have a Web site that's called xxx.com, and it's called XXX.
The FTP path is
home2/*/public_html/xxx/

Because I didn't use it in XXX catalogue.#RewriteRule ^([^./]+)/?$ $1.php [L]
So when my other main web site (home2/*/public_html/) joins this code
Led me into the xxx.com will become 404
Must add index.php to be normal.
This is what he has to add my xxx to this code ... But I didn't use this code in XXX
So he read xxx.com into Xxx.com/index, so he'll be 404.
Please ask this rewriterule how to change the right? Don't affect other records!

I'm now doing this by adding in the public_html/xxx/.
Rewriterule ^index$ index.php [L]
You can coexist in this way. But I don't know what's going to happen.
My only one by one sites do not have hidden file name is xxx so things suddenly .... I didn't expect to be like this.

Thank you for your invitation.

  • 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.