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

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

报告相同问题?