我看到很多类似的问题,但我已经遵循了我从中获得的每个解决方案,而且似乎无法让它在没有冲突的情况下运行。css和图像冲突。 htaccess rewriterule
HTML CSS来电:
<head>
<base href="http://localhost/smartwavedev.sw_apiwebtool/" />
<link rel="stylesheet" href="assets/css/main.css" type="text/css">
<link rel="stylesheet" href="assets/css/login.css" type="text/css">
<link rel="stylesheet" href="assets/css/dashboard.css" type="text/css">
<link rel="stylesheet" href="assets/css/bootstrap/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="assets/css/docs.css" type="text/css">
</head>
的.htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^/]+)$ $1.php
RewriteRule ^([^/]+)/([^/]+)$ $1.php?page=$2
RewriteRule ^([^/]+)/([^/]+)/([^/]+)$ $1.php?page=$2&nav=$3
感谢您的帮助!
你忘了问一个问题。 “它不能没有冲突地运行”不是一个 - 什么冲突,哪里出了问题,你怀疑问题是什么? – 2013-05-14 07:01:04
无法访问css和图像文件。 – 2013-05-14 07:03:22