Подскажите пожалуйста

С1
На сайте с 20.12.2017
Offline
0
337

В скрипте есть 2 .htaccess, один в корне другой в папке webroot

1.

DirectoryIndex index.php

#<Files ~ "\.(woff2|woff|ttf|otf|svg)$">

# Header add Access-Control-Allow-Origin "*"

#</Files>

# No directory listings

IndexIgnore *

<IfModule mod_rewrite.c>

# Comment the following line if you have not a .well-known directory in the root folder.

RewriteRule ^(\.well-known/.*)$ $1 [L]

RewriteRule ^$ webroot/ [L]

RewriteRule (.*) webroot/$1 [L]

</IfModule>

2.

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^ index.php [L]

</IfModule>

В инструкции по установке написано

Some web hosts URLs are not directly related to physical file paths so you need to edit the below list of files

/.htaccess

/webroot/.htaccess

and add the below line of code

Rewrite​​Base /

after this line

RewriteEngine on​​

Куда вставлять эти строки не понятно, куда не провал все одно и тоже

Дело в том что на скрипте не отображаются картинки, пока их не положишь в папку webroot.

Подскажите кто разбирается

A
На сайте с 26.12.2017
Offline
0
#1

На каком движке написан ваш сайт?

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий