Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question