When a browser is displayed:
http://example.com/first/second
and encounters a relative URL, for example:
<img src="site/images/photo.png">
Translates relative URL (respectively):
http://example.com/first/second/site/images/photo.png
so the solution
Try adding the code just below the line RewriteEngine On
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
You can also add the following to <head>, which may work.
<head>
<base href="http://www.example.com/" />
Source: https://habr.com/ru/post/1794977/More articles:Objective-C Random Number Problem - floating-pointJython Gstreamer - pythonHow to configure the GPU software core and memory on Windows? - c ++.htaccess URL Rewrite Problem (Scripts do not load) - urlHow to develop this menu (in the picture) - androidЗагрузка файлов PDF с веб-сайта и изменение имени файла после загрузки - phpTabbed Windows 7 Taskbar Window .Net 2 - .netHow can you block access to internet explorer in asp mvc - internet-explorerGrouping striped data - hashtableMultiple jQuery plugins in one file - jqueryAll Articles