Php 我更改了.htaccess文件,它会显示空白页
我想为我的web服务创建一个短URL,并在.htaccess中插入以下代码,但当我请求打开其他页面时,web服务无法呈现该页面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服务,它工作得很好,但当我请求其他页面浏览器时,显示空白页面而不显示任何代码,当我删除代码时,浏览器可以
RewriteEngine On
RewriteCond $1 !^(index\.php)
RewriteRule ^(.*)$ index.php?l=$1 [L]
此代码将URL链接更改为无需获取syntex for shortlink服务,它工作得很好,但当我请求其他页面浏览器时,显示空白页面而不显示任何代码,当我删除代码时,浏览器可以呈现其他页面
我很抱歉我的英语不好。
谢谢你的帮助。你所说的“重写秒1”是什么意思^(index\.php)?@Ejay我不知道。我从这里()复制了开源项目的代码。我不熟悉htaccess。