How does go [Apache] implement the functions of the apache rewrite module?

Source: Internet
Author: User
How does go [Apache] implement the functions of the apache rewrite module? -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. 1. recompile the rewrite module: apxs-c mod_rewrite.c. How can I check whether the rewrite module is compiled successfully?

2. If the compilation is successful, I want to implement the rewrite function of the three domain names www.gigi.com.cn, www.gigi.cn, www.gigi.org to the http://www.gigi.com. I configure the following in httpd. conf:
Options + FollowSymlinks
RewriteEngine on
RewriteOptions Inherit
RewriteCond % {HTTP_HOST} ^ www.gigi.com.cn [OR]
RewriteCond % {HTTP_HOST} ^ www.gigi.cn [OR]
RewriteCond % {HTTP_HOST} ^ www.gigi.org [NC]
# RewriteRule ^/(. *) http://www.gigi.com [L, R = 301]
RewriteRule ^/(. *) http://www.gigi.com [R, L]
But It cannot be implemented, or access It woks! Please help me analyze this page ~~~~

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.