Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/279.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.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
Php 我更改了.htaccess文件,它会显示空白页_Php_.htaccess - Fatal编程技术网

Php 我更改了.htaccess文件,它会显示空白页

Php 我更改了.htaccess文件,它会显示空白页,php,.htaccess,Php,.htaccess,我想为我的web服务创建一个短URL,并在.htaccess中插入以下代码,但当我请求打开其他页面时,web服务无法呈现该页面 RewriteEngine On RewriteCond $1 !^(index\.php) RewriteRule ^(.*)$ index.php?l=$1 [L] 此代码将URL链接更改为无需获取syntex for shortlink服务,它工作得很好,但当我请求其他页面浏览器时,显示空白页面而不显示任何代码,当我删除代码时,浏览器可以

我想为我的web服务创建一个短URL,并在.htaccess中插入以下代码,但当我请求打开其他页面时,web服务无法呈现该页面

    RewriteEngine On
    RewriteCond $1 !^(index\.php)
    RewriteRule ^(.*)$ index.php?l=$1 [L]
此代码将URL链接更改为无需获取syntex for shortlink服务,它工作得很好,但当我请求其他页面浏览器时,显示空白页面而不显示任何代码,当我删除代码时,浏览器可以呈现其他页面

我很抱歉我的英语不好。
谢谢你的帮助。

你所说的“重写秒1”是什么意思^(index\.php)?@Ejay我不知道。我从这里()复制了开源项目的代码。我不熟悉htaccess。