There is a page.
usluga.php On the basis of the transmitted parameter, a page with the description and so on is formed, then this parameter is turned into CNC, in the end the whole thing looks like this
usluga/nameusl And now links and file connections (css / js) do not work on this page.
<link href="www.sitename.com/css/style.css" type="text/css" rel="stylesheet" media="all"> is it possible to do something like this so that the links of the form
<link href="css/style.css" type="text/css" rel="stylesheet" media="all"> worked
If in do instead
usluga/nameusl usluga-nameusl Everything works as it should
.htaccess
ErrorDocument 404 index.php RewriteEngine on RewriteRule ^usluga/([^/]+)/?$ usluga.php?link=$1 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^(.*)$ $1.html <FilesMatch ".(gif|jpg|jpeg|png)$"> Header set Cache-Control "max-age=2592000" </FilesMatch>