Forums

Full Version: redirect wordpress main index page to another url without plugin and htaccess
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi lads 
I need help redirecting my wordpress main index page to another url without plugin and htaccess 301 is there any possible way 
I can do it,
I have been seeking help so many different forms so far no joy

Look forward to hear from you.
you can do it without 301 or htaccess
This works really well make sure you past in the home page in your worpress the current theme you using 

Code:
home.php
echo '<script type="text/javascript">
          window.location = "http://thenewurl.com"
     </script>';

you will need to edit the theme location
wp-content/themes/yourthemename

good luck
Ahmed man 
I have benefited from what you’ve written here for a long time, and 
I have a long way to go in returning that favor! Big Grin