I have configured my server to accept any subdomain for
pinnaclerealestatesystems.com
(Its something like a virtual host). Its not pointing to any folder/path.
I've written the .htaccess code to redirect all the domains.. Now, i just want to know, where to place .htaccess file in my hosting.
You can try a sample subdomain to get a batter idea
http://abc.pinnaclerealestatesystems.com
I'm using Godaddy Hosting, Linux, Apache
You can place this rule your DocumentRoot/.htaccess
:
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^([^.]+)\.pinnaclerealestatesystems\.com$ [NC]
RewriteRule ^(.*)$ /%1/$1 [L]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.