A rewrite that Apache stopped

Source: Internet
Author: User
Tags zend framework
A rewrite under Apache.
1: My is the Zend environment, by default, except for some static resources are mapped to index.php
2: I have a new mapping notice.html want to map to Content/index, and then let Content/index map to index.php
How do I write it?

Rewriteengine on

Rewriterule notice\.htm$ Content/index [nc,l]
Rewriterule!\. (gif|css|js|jpg|png|pdf|ico|html|php|swf|wmv) $ index.php [nc,l]

I found that the rule was direct notice.html mapped to index.php.
Instead of Content/index mapped to index.php.

Share to:


------Solution--------------------
Do you need to create a. htacess file under the Notice.html folder.
If the Notice.html folder is not established, the program will still go under public. Htacess.

The specific principle of something that you can look at in the Preach Wisdom podcast PHP video tutorial Zend Framework 4th Zend Principle Depth analysis.

  • Related Article

    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.