Druga sprawa stworzyłem mod rewrite'a, który link zmienna.domena.pl będzie traktował jak domena.pl/strona.html?id=zmienna
ale coś nie działa
RewriteEngine on # -FrontPage- IndexIgnore .htaccess */. * *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName DOMENA AuthUserFile public_html/_vti_pvt/service.pwd AuthGroupFile public_html/_vti_pvt/service.grp Options All RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^/?$ http://domena.pl/index.html [R=302,L] AddType application/x-httpd-php .html RewriteEngine on RewriteCond %{HTTP_HOST} !^(www.)?domena.pl [NC] RewriteCond %{HTTP_HOST} ^(.*?).domena.pl [NC] RewriteRule ^http://([a-zA-Z0-9-]+).domena.pl$ http://domena.pl/strona.html?id=$1 [NC,L]
Dodam, że oczywiście wpisuje swoją domenę zamiast skryptowej domena.pl