title: set mod rewrite for subdomain url
body: <p>I want to make beauthy URL address with mod rewrite. I am using subdomain and my page who I want to change is : 
  <a href="http://skola.sharedgames.eu/subdom/skola/clanky/podrobnosti_o_clanku.php?nazov_clanku=jjjhh" rel="nofollow">http://skola.sharedgames.eu/subdom/skola/clanky/podrobnosti_o_clanku.php?nazov_clanku=jjjhh</a></p>
  
  <p>I want to make something like : 
  <a href="http://skola.sharedgames.eu/subdom/skola/clanky/jjjhh" rel="nofollow">http://skola.sharedgames.eu/subdom/skola/clanky/jjjhh</a></p>
  
  <p>I tried make it in to .htaccess file but nothing happend</p>
  
  <pre><code># htaccess rules for subdomains and aliases
  # to create new subdomain, create a folder www/subdom/(subdomain name)
  # to create web for alias, create a folder www/domains/(whole domain name)
  
  
  RewriteEngine On
  RewriteRule ^([^/]*)\?$ /subdom/skola/clanky/podrobnosti_o_clanku.php?nazov_clanku=$1 [L]
  
  RewriteCond %{REQUEST_URI} !^domains/
  RewriteCond %{REQUEST_URI} !^/domains/
  RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$
  RewriteCond %{DOCUMENT_ROOT}/domains/%2 -d
  RewriteRule (.*) domains/%2/$1 [DPI]
  
  RewriteCond %{REQUEST_URI} !^subdom/
  RewriteCond %{REQUEST_URI} !^/subdom/
  RewriteCond %{HTTP_HOST} ^(www\.)?(.*)\.([^\.]*)\.([^\.]*)$
  RewriteCond %{DOCUMENT_ROOT}/subdom/%2 -d
  RewriteRule (.*) subdom/%2/$1 [DPI]
  
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^domains/[^/]+/(.+[^/])$ /$1/ [R]
  
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^subdom/[^/]+/(.+[^/])$ /$1/ [R]
  </code></pre>