Answer the question
In order to leave comments, you need to log in
MVC PHP how to correctly configure htaccess so that css is also connected?
Good time! Tell me how you can connect or solve the problem with connecting Css and JS. There is a very simple implementation of MVC.
Through .htaccess I redirect to the index page.
addDefaultCharset utf-8
RewriteEngine on
RewriteBase /
rewritecond %(REQUEST_FILENAME) !-f
rewritecond %(REQUEST_FILENAME) !-d
RewriteRule ^(.*)$ index.php
<link href="/temp/css/bootstrap.css" type="text/css" rel="stylesheet">
Satisfy Any
Allow from all
Answer the question
In order to leave comments, you need to log in
Understood. by changing condition in main htaccess
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question