mod_rewrite is enabled, I have read a lot of forums, but they do not normally explain on one.

RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} !^www\.domain\.(com|ru)$ RewriteCond %{HTTP_HOST} (www\.)?(.*)\.domain\.(com|ru)$ RewriteCond %{REQUEST_URI} !games/ RewriteRule ^(.*)$ games/%2/$1 

Here is an example of such a code, I write it in the root of the site, in .htaccess ... Then, as I try to go to games.domain.ru, I get an error 404, which I did not understand?

  • I also tried this method: phpclub.ru/talk/threads/… - ElenaDemon am
  • And the subdomain is registered in DNS? - ReinRaus
  • Rein, here, and where should I prescribe it in "radyx"? I just documented that I did not register in the DNS ... - ElenaDemon
  • And you bought domains through them or from a registrar, like nik.ru? - ReinRaus
  • 2domains.ru) and what role does this play?) - ElenaDemon

0