Apache Tutorial: Enable mod_rewrite In Windows A brief action guide to enable mod_rewrite in Windows

http://www.astahost.com/topic/11623-apache-tutorial-enable-mod-rewrite-windows-brief-action-guide/


Hi everybody, 
If you are using Windows OS and want to enable mod_rewrite module here is how to do it.
This is the general configuration guideline both for Windows and Linux server:

Quote

1. Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines) 
2. Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line) 
3. Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.


For Windows, find the following section in httpd.conf file:

Quote

DocumentRoot "C:/path/to/my/root" 

# Each directory to which Apache has access, can be configured with respect 
# to which services and features are allowed and/or disabled in that 
# directory (and its subdirectories). 

# First, we configure the "default" to be a very restrictive set of 
# permissions. 
#


Now modify the option for AllowOverride to look like this: 

<Directory /> 
Options All 
AllowOverride All 
</Directory> 


This small modification in httpd.conf file will enable mod_rewrite in Windows server.
An excellent website that gives in-depth discussion on mod_rewrite is  Doriat.om- Mod_Rewrite Tutorials Board .

Regards,
Sid 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值