dongxian1699 2016-08-17 13:03
浏览 34
已采纳

.htaccess不在wamp中工作

Below is my .htaccess file which is not working locally(wamp)..

    Options +FollowSymLinks -MultiViews
    RewriteEngine On

    RewriteRule ^[a-zA-Z0-9]{40}$ search.php?hash=$1

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index($|\ |\?)
    RewriteRule ^ /%1 [R=301,L]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
    RewriteRule ^ %1 [R,L,NC]

    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteRule ^ %{REQUEST_URI}.php [L]

    ErrorDocument 404 /pivr/error.php

    <Files .htaccess>
    order allow,deny
    deny from all
    </Files> 

Apache Error log says..

[Wed Aug 17 21:00:33.766183 2016] [core:alert] [pid 5780:tid 900] [client      ::1:50180] C:/wamp/www/search/.htaccess: Invalid command 'RewriteEngine',     perhaps misspelled or defined by a module not included in the server configuration

I keep getting 500 internal Server error how to fix it?

  • 写回答

1条回答 默认 最新

  • ds122455 2016-08-17 14:22
    关注

    Issue fixed by activating rewrite engine in apache module ...

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?