简体   繁体   English

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

[英]htaccess rewrite clean url is taking forever to load

I am trying to rewrite my URL but when I do in htaccess, the page load is taking forever and when it loads there is no styling and the images are blank, can't seem to tell what the problem is, I don't see any problem in the code, can you help, please ? 我正在尝试重写我的URL,但是当我在htaccess中进行操作时,页面加载将永久进行,并且在加载时没有样式,图像为空白,似乎无法分辨出问题所在,我看不到代码中有任何问题,请您提供帮助吗?

Rewrite clean url for profile.php?user_id=1&section=discussions 重写profile.php的干净URL?user_id = 1&section = discussions

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

Solution is adding 解决方案正在添加

<base href="/">

in the head tag 在头标签中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM