我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

htaccess中的正则表达式无法在服务器上运行

I have the following regex in the .htaccess file, its working fine in my local machine, but on the server localhost this will not work If I have the \/ in the regular expression

RewriteEngine on
RewriteRule ^orders\/ order.php [L]

My url will looks like localhost/items/orders/casio-watch.

*Here items is the foldername

Please help, Thanks in advance

Use a RewriteBase statement in your .htaccess:

RewriteBase /items

近期文章

  • PHP代码无法识别某些值
  • 配置Tectite PHP Formmail脚本
  • 如何在搜索部分重新加载div?
  • 使用当前ID发布子内容
  • HTML表单:如何提交许多(100+)输入
  • 我可以从excel生成mysql查询吗?
  • 如何使用Jquery获取pickadate值?
  • 使用PHP从Web表单更新数据表
  • 如何从preg_match_all获取密钥?
  • 添加选择以编程方式捆绑
  • 如何在mysql中连接两个表记录
  • 带有dockerized PHP-FPM的502 Bad Gateway
  • 使用无限参数的wsdl操作
  • 错误101(net :: ERR_CONNECTION_RESET):在PHP中
  • AllPosters.com SOAP有问题的响应
  • 它不是在文本输入中显示数据
  • 使用我的会话时MYSQL查询错误
  • 即时匿名的MySQL转储
  • 我的PHP裁剪图像程序是否正确?
  • 正则表达式 - 如何一次匹配一个模式

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华