Forums
redirect wordpress main index page to another url without plugin and htaccess - Printable Version

+- Forums (http://somalicomment.com)
+-- Forum: Special Page 4 Mrsomali.com (http://somalicomment.com/forumdisplay.php?fid=12)
+--- Forum: Special Page For Ahmed Liido (http://somalicomment.com/forumdisplay.php?fid=13)
+--- Thread: redirect wordpress main index page to another url without plugin and htaccess (/showthread.php?tid=139)



redirect wordpress main index page to another url without plugin and htaccess - lenny - 07-10-2017

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.


RE: redirect wordpress main index page to another url without plugin and htaccess - Ahmed-Liido - 07-11-2017

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


RE: redirect wordpress main index page to another url without plugin and htaccess - Martinb - 07-15-2017

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