Changing DocumentRoot
-
Hi I am Masa. I recently have changed Apache DocumentRoot for wordpress like the following.
Old: DocumentRoot /var/www/home/www/{sitename}
New: DocumentRoot /var/www/home/users/{user.id}/www/{sitename}I copied all files including wp-core files from Old DocumentRoot to New DocumentRoot and checked the site is working.
However, when I install plugins, it uploads to Old DocumentRoot like /var/www/home/www/{sitename}/wp-content/plugins.In order to fix this problem, I have tried these things.
Changed recently_edited’s path and the word count -> didn’t work
Added define( ‘WP_PLUGIN_DIR’, dirname(__FILE__) . ‘/wp-content/plugins’ ); -> didn’t workHow can I change the wp plugin upload directory to like /var/www/home/users/{user.id}/www/{sitename}/wp-content/plugins?
Thank you for your help in advance.
- The topic ‘Changing DocumentRoot’ is closed to new replies.