htaccess重写干净的URL永远需要加载

时间:2019-04-27 05:45:33

标签: php .htaccess

我正在尝试重写我的URL,但是当我在htaccess中进行操作时,页面加载将永久进行,并且在加载时没有样式,图像为空白,似乎无法分辨出问题所在,我不知道在代码中看不到任何问题,请您提供帮助吗?

重写profile.php?clean_url?user_id = 1&section = discussions

 RewriteRule ^profile/([0-9]+)/([0-9a-zA-Z_-]+) profile.php?user_id=$1&section=$2 [NC,L]

1 个答案:

答案 0 :(得分:1)

解决方案正在添加

<base href="/">

在头部标签中

相关问题