重写条件和加载失败.php


Rewrite conditions and failure to load .php

虽然当我将文件上传到我的服务器(bluehost)时,我的网站在本地环境(MAMP)上运行良好,但我遇到了以下问题:

我有一个带有 php get 变量(即/xxx.php?p=bob)的链接,该变量调用打开弹出窗口的 javascript 函数(弹出窗口)。

链接的结构如下:

<?php echo "<a href='media_player.php?p=".$listen_now."' onclick='"return popitup('media_player.php?p=".$listen_now."')'">"

弹出窗口函数定义如下:

function popitup(url) {
    newwindow=window.open(url,'name','height=700,width=375');
    if (window.focus) {newwindow.focus()}
    return false;
}

当弹出窗口打开时,页面内容不会加载,并且我收到以下消息:

[an error occurred while processing this directive]

主错误日志显示以下警告:

[Mon May 28 08:23:40 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.

我的public_html文件夹中的 .htaccess 文件不包含任何重定向或重写。

非常感谢

有关如何解决此问题的任何线索。

RewriteCond警告来自Apache的mod_rewrite。您在以下任一方面都有损坏的重写规则:

  • .htaccess(.php文件的目录或树上到系统根目录的任何目录中
  • 虚拟主机配置
  • 主要 Apache 配置

找到它的位置并在那里修复它。