How to redirect Wordpress to index?
How to redirect Wordpress to index?
Out of context: Reply #3
- Started
- Last post
- 3 Responses
- nb0
^ Thanks! That was so simple, I didn't occur to me.
I did a little further research and it looks like the meta refresh is deprecated. Instead I used a 301 refresh by using the following as my /wp/index.php:
?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.mydomain.com/");…
exit();
?- And it seems to work for wp-created pages within the /wp/ directory. Bonus.nb