Linux host Rewrite-Linux Enterprise Application-Linux server application information. For details, refer to the following section. How does pache use the rewrite module?
Solution:
1. Add the following configuration to the apache configuration file httpd. conf:
Apache-1.3.x version, added in/usr/prima/apache_ssl/conf/httpd. conf:
LoadModule rewrite_module libexec/mod_rewrite.so
AddModule mod_rewrite.c
Apache-2.x version, add the following in/etc/httpd/conf/httpd. conf:
LoadModule rewrite_module modules/mod_rewrite.so
Note that FileInfo is the key to support RewriteEngine.
4. After that, you only need to configure the. htaccess file in the directory where you need. htaccess. To use the rewrite module, add the following:
RewriteEngine On
[Rewrite configuration]
5. In Windows, you can first write the. htaccess content to a text file, and then upload the text file to the directory where the server requires. htaccess and change it to. htaccess.
You can use the rewrite module according to the above configuration.
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