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:
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
Post a Comment