.htaccess图像在重写后未显示

编程入门 行业动态 更新时间:2024-10-24 12:24:31
本文介绍了.htaccess图像在重写后未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有问题,URL已被这样重写

I have a problem, URL's have been rewritten like this

RewriteEngine on RewriteCond %{REQUEST_URI} !index.php RewriteRule ^(.*)$ index.php?test=$1 [NC,L]

我的图像均未应用,css样式均未应用。我已经尝试过< base href = /> ,但是它不起作用。

None of my images, nor css styles are being applied. I have tried <base href="/">, but it is not working.

任何解决方案?

推荐答案

尝试一下

RewriteEngine on RewriteCond %{REQUEST_URI} !index.php ## if the request is not for a valid file RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?test=$1 [NC,L]

更多推荐

.htaccess图像在重写后未显示

本文发布于:2023-11-01 23:07:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550675.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重写   图像   htaccess

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!