# htaccess rule to ignore specific subdomain [closed]

I have a .co.uk domain name which hosts a Wordpress website and has SSL certificate applied via AutoSSL in cPanel.

I also have a subdomain to that .co.uk which is forwarding to another server using the DNS zone editor in WHM.

On the wordpress website, there is a link to the subdomain which should display a web app hosted on the secondary server, but unfortunately it is just reloading the wordpress website, and I am presuming this is something to do with the htaccess file.

Is there a rule that needs adding to make the htaccess ignore the subdomain so that when the link is clicked, the user is sent to the subdomain correctly, instead of having it refresh the home page?

Thanks

## closed as off-topic by Mark Kaplun, Nathan Johnson, Christine Cooper♦, Jacob Peattie, Jack Johansson♦Mar 1 '18 at 13:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?" – Mark Kaplun, Nathan Johnson, Christine Cooper, Jacob Peattie, Jack Johansson
If this question can be reworded to fit the rules in the help center, please edit the question.

• What DNS record are you using to "forward" the domain to another server? (Presumably an A record?) Does the subdomain work as expected when typing it directly in the browser's address bar? How is the link formed on your HTML page? The point is, if the subdomain is pointing to a different server (IP address) in the DNS then you shouldn't even be getting to your server, WordPress or .htaccess?! Make sure you've cleared your local browser/DNS caches. – MrWhite Feb 27 '18 at 0:21
• there is nothing wordpress specific about this question. it sounds like either you do not have the right DNS configuration or you have not waited long enough for it to propagate. – Mark Kaplun Feb 27 '18 at 3:31
• @MrWhite Yes using an A record, typing the subdomain in works on some browsers but not others, the link is just a simple a href="http://...." – Adrian Feb 27 '18 at 9:19
• @MarkKaplun I did think that but then thought if it was htaccess causing this then best post in Wordpress topic, apologies if not. – Adrian Feb 27 '18 at 9:19

• By creating a subdomain in cPanel you will have created an A record pointing to the local server. If you have more than one A record for the same hostname then the browser effectively picks one at random (or not, depending on implementation and DNS caches, etc.) so it's quite probable that user-agents see one result or the other. This is a form of round-robin DNS. – MrWhite Feb 27 '18 at 16:21