php - create virtual subdomain from folder throught htaccess in shared hosting panel -


i want access www.domain.com/test test.doamin.com , many more test2.domain.com,test3.. creating virtual subdomain through htaccess. have tried , follow link no change found. think because have shared hosting , subdomains created cpanel. please provide complete guidance on it.

i followed follwing links:

  1. https://forums.digitalpoint.com/threads/how-to-create-virtual-dymanic-subdomain-in-php-with-htaccess.1521742/

  2. virtual subdomain htaccess

  3. how create virtual subdomain using htaccess?

  4. http://www.webmasterworld.com/apache/3638570.htm

but still problem not solved. gives ooops not find..

i had same issue before, must use cpanel create subdomain. if remember right there dns issue code:

rewritebase / rewritecond %{http_host} !^www\.domain\.com [nc] rewritecond %{http_host} ([^\.]+)\.domain\.com [nc] rewritecond %{request_uri} !^/index [nc] rewriterule ^(.*) http://domain.com/%1 [p] 

if don't want use cpanel creating wildcard domain entry such *.domain.com should help.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -