drcrc28428 2015-02-01 18:18
浏览 30
已采纳

Apache Rewrite在子域中根本不返回任何内容

I've deployed my website on OVH and I have some issues. It works just fine on localhost and it returns nothing on OVH. Both have the same file structure :

/
  www/
    portfolio/
      [others files or folder]
      .htaccess 
      index.php

The problem is that I'm using the Apache's rewrite_mod. I have this in my .htaccess file :

 Options -MultiViews
 RewriteEngine On 
 RewriteCond %{REQUEST_FILENAME} !-f 
 RewriteRule ^ index.php [QSA,L]

So everything goes through index.php but I've got litteraly nothing in return. even if I do a simple echo 'Hello World !' on the first line. Right now I simply try to access it via www.domain.com/portfolio, I didn't use the DirectoryIndex in a www/.htaccess file.

Do you have any idea ? Thank you

  • 写回答

1条回答 默认 最新

  • dsiv4041 2015-02-01 20:29
    关注

    Make sure to allow .htaccess in your Apache config. Change AllowOverride None to AllowOverride All

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

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算