Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess重写失败,uri字符串为_.htaccess - Fatal编程技术网

.htaccess重写失败,uri字符串为

.htaccess重写失败,uri字符串为,.htaccess,.htaccess,/node可以正常工作,但当我附加一个字符串查询、/node/1234或仅仅是另一个查询时,页面就不能完全运行。javascript失败 RewriteEngine On # Turn on the rewriting engine RewriteRule ^node/?$ index.php?req=node [NC,L] RewriteRule ^node/(.*)$ index.php?req=node&con=$1 [NC,L] 在/node之后,是否有更多的正则表达式供所有人

/node可以正常工作,但当我附加一个字符串查询、/node/1234或仅仅是另一个查询时,页面就不能完全运行。javascript失败

RewriteEngine On
# Turn on the rewriting engine
RewriteRule ^node/?$ index.php?req=node [NC,L]
RewriteRule ^node/(.*)$ index.php?req=node&con=$1 [NC,L]

在/node之后,是否有更多的正则表达式供所有人传递任何内容?

我通过将HTML脚本src从:js/jquery.tubble.1.0.js//www.example.com/js/jquery.tubble.1.0.js更改为解决了这个问题。显然,example.com将是真正的URL。来源看起来很好,所以我不能100%确定它为什么会损坏。这是工作与不工作之间唯一的变化可能是脚本的路径错误。因为你没有进行外部重定向,你也必须重写脚本引用。在chrome开发工具中打开你的页面,看看你是否得到了404 for JS/cssi get:SyntaxError:expected expression,得到了“你的规则的顺序是什么?这个方法有任何安全隐患吗?”?