V
V
Vadim9972014-10-08 22:28:51
PHP
Vadim997, 2014-10-08 22:28:51

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]

Thank you Vadim997

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sali_cat, 2014-10-08
@Sali_cat

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.

W
WebSpider, 2014-10-09
@WebSpider

Links to CSS, JS, etc. should be changed from relative to absolute

K
Konstantin Andreevich, 2014-10-09
@reffy

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 question

Ask a Question

731 491 924 answers to any question