.htaccess not working on WAMP

谁都会走 提交于 2019-11-29 17:14:22

问题


I have installed WAMP on Windows. I found .htaccess files are not working here. Is there any way to work with .htaccess?


回答1:


Click on Wamp icon and open Apache/httpd.conf and search "rewrite_module". Remove # as below and save it

LoadModule rewrite_module modules/mod_rewrite.so

after that restart all service.




回答2:


1) Left click WAMP icon

2) Apache

3) Apache Modules

4) Left click rewrite_module




回答3:


Open Apache/conf/httpd.conf and search "rewrite_module".

Remove # as below

#LoadModule rewrite_module modules/mod_rewrite.so
as
LoadModule rewrite_module modules/mod_rewrite.so

Then Save it and restart your server. It will work.



来源:https://stackoverflow.com/questions/4321990/htaccess-not-working-on-wamp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!