Answer the question
In order to leave comments, you need to log in
How to prevent a problem in the CNC?
I did it on the CNC website, and then a problem arose. I have an address mysite/post , where everything works fine, but after mysite/post/, php and css files are not included. What is the problem I can not understand.
Here is the code in .htaccess:
RewriteEngine On
RewriteBase /mysite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/([0-9]+)/$ index.php?uri=$1 [L,QSA]
Answer the question
In order to leave comments, you need to log in
open the console, reload and you will see 404.
If so, then htaccess is not registered correctly.
I don’t know htaccess well, so I won’t help ((
if there is 403 then go to the place where this file is located and edit htaccess if 500 is the same, only the error arose due to incorrect htaccess.
That's what I know.
Links to CSS, JS, etc. should be changed from relative to absolute
You need to look at the source code of the page that is displayed at mysite/post/ (or where the files are not connected there). Pay attention to the css path it is trying to include. From here, dig further.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question