On the info.domain subdomain, you need to leave only addresses of the form info.domain / suggest * available, and wrap the rest for the domain. I wrote this rule:

#info.moygorod/suggest RewriteCond %{HTTP_HOST} ^info\.(.*) RewriteCond %{REQUEST_URI} !^/suggest RewriteRule ^(.*)$ http://%1/ [R=301,QSA,L] 

but for some reason an exception! ^ / suggest does not work, all links from info.domain go to the domain. What is wrong?

  • By the way, here's% 1 you should not work. just a sample of the last cond chpabaty - splash58
  • There is such a rule, it works: RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,QSA,L] - Mik
  • one
    yes, and if I insert another Cond between them, then I don’t know what will happen in% 1. but according to the standard of vybok is not saved - splash58
  • so why not work I do not know, but all different cond'y swap places - splash58
  • Unfortunately, it did not help. the effect is the same - Mik

0