I have two websites:
website.com
dev.website.com
Both websites have different configurations based upon the above. I write a code to identify the dev and main website, but it is always picking up the dev, even if I am on the main website.
Here is the code:
<cfif ReFindNoCase("^(dev\.)?website\.com$",CGI.SERVER_NAME) NEQ 0>
?
equates to "match zero or more" instances ofdev.
". That's true in both cases. Get rid of the?
<cfif ReFindNoCase("^(dev\.)website\.com$",CGI.SERVER_NAME) EQ 0>
will refer to dev - correct?0
means it's not dev.