douzhi4056 2016-06-29 05:36
浏览 6

mod重写不适用于Server

So I need to redirect all the request with the url starting with 'ordermodel'. This works on my localhost but when I uploaded it on my Server it did not redirect to index.php. Below is my htaccess.

                    <IfModule mod_rewrite.c>
                        RewriteEngine On
                        RewriteCond %{REQUEST_FILENAME} !  
                        (aHirasTailoredFit.php|admin_CI)
                        RewriteRule ordermodel index.php [QSA,L]
                    </IfModule>

This is my local url: http://localhost/BACKUP-HIRAS-JUNE-27-2016/HirasTailoredFit-DEV/ - it works here

but not here

http://www.example.com/QA-OrderSheet/aHirasTailoredFit.php

  • 写回答

1条回答 默认 最新

  • duanqinqian5299 2016-06-29 05:40
    关注

    You need to allow overwrite there ..

     <Directory "/path/to/document/root/">
       AllowOverride All
       Allow from All
     </Directory>
    

    and Please confirm that you remove # from Httpdconfig file from Apache folder.

    评论

报告相同问题?

悬赏问题

  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理