Help, please, deal with "human" links. For example, it is necessary that the http://mysite.ru/index.php?option=tag&t=vaz page can be entered by entering http://mysite.ru/tag/vaz in the address bar

Here is the content of the .htaccess file:

RewriteEngine on RewriteRule ^tag/([^/]+)/?$ ?option=tag&t=$1 AddDefaultCharset utf-8 

It seems to go to the desired page, but for some reason, style sheets fly. Denver site.

  • Hello! I have a similar problem. On the local server, I registered an absolute let to the file of styles and everything seems to work. But when I click to refresh the page, the styles fly off. After the site has been uploaded to the hosting, nothing has changed, everything works until the page is updated. Tell me which way to dig? - user14452
  • This is in fact not the answer to the question. If you have other questions, you can ask them by clicking the " Ask a Question " button. Additionally, you can add a reward to get more attention to the question when your reputation reaches a sufficient level. - Athari

1 answer 1

 RewriteEngine on RewriteRule ^(*.)/(*.)/?$ ?option=$1&t=$2 AddDefaultCharset utf-8 

about the styles, check the connection of files; most likely you have a relative path, you need to fix it on an absolute, for example:

 <link rel="stylesheet" type="text/css" href="style.css"> //относительный <link rel="stylesheet" type="text/css" href="/style.css"> //абсолютный от корня сайта 
  • Exactly, everything works. Thank you - Alexey Astafyev