D
D
david25552019-02-01 21:50:03
htaccess
david2555, 2019-02-01 21:50:03

After changing .htaccess, css, js and images are not loaded?

My site is on local hosting, css, js and pictures are not loaded when transferring to a hosting site.
When I delete all .htaccess files, everything works.
Here is the code, how can I fix it?

RewriteEngine On
Options +Indexes
Options +FollowSymLinks

# Редирект для категорий (чтобы в конце URL был /)
#RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !-f
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !.html$
#RewriteCond %{REQUEST_URI} !.xml$
#RewriteRule (.+) $1/ [R=301,L]

# Редирект c www на без www
RewriteCond %{HTTP_HOST} ^www.portfoolio.online
RewriteRule ^(.*)$ http://kinozalle.ru/$1 [R=permanent,L]

# Редирект для главной (с /index.php,html на /)
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ / [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ / [R=301,L]

# Редиректы
RewriteRule ^page/([0-9]+)(/?)$ index.php?cstart=$1 [L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SubGANs, 2019-02-02
@SubGANs

Comment out the lines one at a time and check after which everything starts working, then it's a problem. See with what error the files are not loaded and solve it. Yet simple

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question