Answer the question
In order to leave comments, you need to log in
How to create .htaccess rules?
Hello! I haven't been able to set up rules for .htaccess for several days now. Here's the thing:
Get yourself a hosting. At the moment I am learning to make a website on MVC. I set up .htacces so that all requests are redirected to index.php, while styles are loaded, but js and images are not loaded.
How to make sure that everything works correctly?
Here is the file itself:
AddDefaultCharset utf-8
RewriteEngine on
RewriteBase /shop
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question