Question

Giving WordPress Its Own Directory

Posted February 3, 2014 2.7k 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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
Submit an Answer