chizijs Posted February 13, 2011 Report Share Posted February 13, 2011 Tātad vajag dabūt subdomainu ar php vai .htaccess palīdzibu.. Ir mape ar nosaukumu blabla tad ar subdomainu palīdzību vajag attēlot mapi blabla , tas ir, kad adrese ir http://blabla.name.com/ - rada mapes failus. Subdomainu skaits ir bezgalīgs Link to comment Share on other sites More sharing options...
sandis_m Posted February 13, 2011 Report Share Posted February 13, 2011 google Link to comment Share on other sites More sharing options...
chizijs Posted February 13, 2011 Author Report Share Posted February 13, 2011 izmklējos, atradu kaut kādus skriptus, nekā! Link to comment Share on other sites More sharing options...
ohmygod Posted February 13, 2011 Report Share Posted February 13, 2011 who_i_am tas nu gan bija izsmeļoši. chizijs - Tev vajag CNAME uz *.domain.com izlobi no php pieprasījuma urli, no kura iegūsi subdomēnu. Un rādi kaut miljons mapes Link to comment Share on other sites More sharing options...
sandis_m Posted February 13, 2011 Report Share Posted February 13, 2011 (edited) RewriteEngine On RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com$ [NC] RewriteRule ^(.*)$ http://domain.com/%1 [QSA,R=301,L] vai RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.domain\.com RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com RewriteRule ^$ /%1 [L] + jā, CNAME uz *.domain.com Edited February 13, 2011 by who_i_am Link to comment Share on other sites More sharing options...
Recommended Posts