Greetings. Tell me
//.htaccess AddDefaultCharset utf-8 DirectoryIndex index.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?myget=$1 [L,QSA] We do this, then all the pictures disappear on the site:
// вот так mysite.ru/test/ // /img/logo.jpg - ищется как mysite.ru/test/img/logo.jpg (что есть неправильно) // картинка реально в mysite.ru/img/logo.jpg Googled, searched - dully. Option 2:
- Specify absolute addresses (which is possible, but full of sites without this cost)
- Indicate how the directory from which to look at all the addresses (basic so to speak)
Question: Tell me, is it possible to somehow specify this very basic path for all JS / CSS files, so that there are no glitches with addresses? And where is it prescribed?
ps fixed 1 error