html - 重写 CSS 和图像 URL
问题描述
我有这段代码可以删除 .html
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.html
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.html
转到posts.html 工作,但posts 不显示CSS 或图像,帮助?
解决方案
推荐阅读
- r - 将一列字符转换为日期
- mongodb - 获取在 Mongodb 嵌套组内具有最高日期的记录
- nginx - 如何在 Kubernetes 中为多个服务设置粘性会话?
- java - 通过在 Sql 中使用表名中的特定单词检查表是否存在
- azure - 如何增加 Azure 容器实例的共享内存(dev/shm)?
- r - 如何在 R 中查找 MDS 的异常值?
- javascript - 函数 showToast 正在删除元素而不是输出消息
- scala - java.lang.ClassNotFoundException:com.datastax.spark.connector.rdd.partitioner.CassandraPartition
- javascript - 飞入动画仅在焦点上
- python - 如何获取另一个函数内部定义的函数的 getattr()?Python