URL Redirect for Auth

My login page goes to mywebsite.com/dashboard.html?fromauth but if it does it without the ?fromauth I want to redirect them to the login page. The challenge is I cannot have a .htaccess due to …