I have an alias domain name which I don't want it to load the website. I only want my alias domain to access if the request URL has a certain string.
Example: www.myalias.com/pass/whatever/here
The string I'm looking at is the "pass" If the request URL has the "pass" there, then allow to access to the website, if not then return 404 error.
The rule will check if the domain name is equal to "myalias.com" then check to see if the string "pass" is exist in the request URL.
How can I write that to a rule in .htaccess ?