A rewrite stopped by apache

Source: Internet
Author: User
A rewrite1 in apache: this is my zend environment. by default, all other static resources are mapped to the index. php 2: I have a new ing notice.html & nbsp; to map to content/index & nbsp;, and then map content/index & nbsp; to index. php: how can I get a rewrite under apache?
1: I use the zend environment. by default, all other static resources are mapped to index. php.
2: I have a new ING, notice.html, to map to content/index, and then map content/index to index. php.
What should I do?

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 this rule maps notice.html to index. php directly.
Instead of ing content/index to index. php
Share:
------ Solution --------------------
You cannot create another. htacess file in the notice.html folder.
If the folder notice.html is not created, the program will still go to. htacess.

For more information about the principles, see The zend framework 4th tutorial on deep analysis of zend principles.

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.