How to configure Rewrite in Apache!

Source: Internet
Author: User
How to configure Rewrite in Apache !~ Online !! I am using PHPNOW1.5.4 built-in Apache2.2. now I need to enable Rewrite. I have no idea what to ask, and I want to install a plug-in. the description is as follows: the first version. currently, only the level-2 directory is supported .. and it must be/stock/later for improved usage... this tutorial teaches Apache how to configure Rewrite! ~ Online !!
I am using PHPNOW1.5.4 built-in Apache2.2. now I need to enable Rewrite. I have no idea what to ask, and I want to install a plug-in. the description is as follows: the first version. currently, only the level-2 directory is supported .. and must be/stock/
Make improvements later

Usage...
Put this program in the/directory... and then forward all requests to this program through REWRITE...
Create the following directories and set the write permission finance mirror stock foreignMarket.
Apache REWRITER settings (assuming that this program is stored in the root directory of the website)

RewriteRule ^ stock/(. *) $/znz. php [L]
RewriteRule ^ finance/(. *) $/znz. php [L]
RewriteRule ^ mirror/(. *) $/znz. php [L]
RewriteRule ^ forignMarket/(. *) $/znz. php [L]

ZNZ. PHP is the main program ..
CONFIG. PHP is the configuration program
HEADER. TPL/FOOTER. TPL is the upper/lower template file.

The content in the template file () is an annotation. it must be deleted during actual use.



How can I start from scratch?

------ Solution --------------------
Rewrite Manual:
Http://httpd.apache.org/docs/2.2/rewrite/

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.