为每个用户创建文件夹

时间:2017-05-19 00:40:11

标签: php .htaccess

当我尝试在我的网站中设置htaccess代码时,我遇到了一个问题

代码:

Options All -Indexes
Options +MultiViews
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ user.php?q=$1

现在,当网址为:www.example.com/john时,它会显示用户个人资料为www.example.com/user.php?q=john

但是当网址变为www.example.com/blablabla/时,它会显示已损坏的网页!像这样:

enter image description here

该怎么办?

0 个答案:

没有答案