Stop subdomain redirects to main domain in wordpress

admin

Administrator
Staff member
I have a website that is build in WordPress.

I want to build the sub-domains for the site according to the states same as <strong>"olx.in"</strong> do for different cities.

Everything is setup from the code, server and hosting side, but the problem I am facing is that when I type any sub-domain in the URL like <strong>"rj.mysite.com"</strong> then I there is somewhere somthing written in the wordpress php file, that is redirecting me to the main domain because I made many changes in the .htaccess file but nothing worked out.

I have tried so much but couldn't found the script that is redirecting the sub-domains to the main domain.

Can anybody please tell me that what should be there in the php code of WordPress that is redirecting my sub-domains to the main site?