I m new user of Wordpress and php with experience in coldfusion server language.
I m asking if there is a code to redirect to the home page using the homeurl as a variable.
(i wand to use this in index.php files inside subfolders for security reasons)
I have the following code:
<?php header('Location: https://mysitedomainname.com'
i need the https://mysitedomainname.com
to be a variable