Giving WordPress Its Own Directory

February 3, 2014 1.4k views
I tried following http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory as a guide, and did everything it said: moved wordpress files into a www/blog/ directory and modified the index.php file( i didn't have an ahtaccess file). mywebsite.com/blog works but as soon as i click on anything on the page, it redirects to mywebsite.com. under WordPress Address (URL), i have mywebsite.com/blog and for the Site Address (URL) I have mywebsite.com just as the guide told me to do
1 Answer
I found the solution:


define('WP_HOME','http://andhenrydaniel.com/blog');
define('WP_SITEURL','http://andhenrydaniel.com/blog');

added that to wp-config.php, which is the same editing the following on the wp-admin settings page:

WordPress Address (URL) http://andhenrydaniel.com/blog
Site Address (URL) http://andhenrydaniel.com/blog
Have another answer? Share your knowledge.