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.