B
B
Bogdan Khvalko2021-08-23 01:59:46
htaccess
Bogdan Khvalko, 2021-08-23 01:59:46

How to properly set up .htaccess?

The architecture of my application.

-- site
----- game
-------- app
-------- public

Can't set up a redirect. Perhaps the head does not cook already, I spent two hours, help !!!

.htaccess for game

AddDefaultCharset utf-8
RewriteEngine On
RewriteRule $ public/$1

.htaccess for public

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-
RewriteRule ^(.+)$ /index.php/ $1 [QSA]

Works well, styles disappear, what could be the catch? I have already tried many options, nothing helps.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bogdan Khvalko, 2021-08-23
@quitting

And just something the cache had to be cleared ((((((((((((((((((((((

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question