现在路由问题已经解决了。 bootstrap
css
不工作..这里是 .htaccess
代码。
htaccess
位于根文件夹中。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,QSA]
</IfModule>
最佳答案
尝试使用包含 css 文件的绝对路径。
这可能与您的 url 相关,或者只是来自服务器根目录的绝对值。
<style rel="stylesheet" href="https://yoururl.com/css/bootstrap.css">
另一种选择是使用 <base href="/" />
, 这样每条相对路径都会重新路由到该原点。
关于php - 当我使用 .htaccess 重定向所有内容时,Bootstrap css 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58429788/