Plugin useless if plugin dir is moved (CSS/JS)
-
Hello,
I moved successful the plugin directory in a other directory and I added in wp-config.php following:
define('WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/site/plugins' ); define('WP_PLUGIN_URL', 'https://' . $_SERVER['SERVER_NAME'] . '/wp-content/plugins');All moved plugins was reactivated and User Role Editor is shown too, but CSS and JavaScript don’t work like before moving the plugin directory.
- /wp-admin/users.php?page=users-user-role-editor.php
- /wp-admin/users.php?page=users-user-role-editor.php&object=user
Where is the error of that?
In the files, I couldn’t find anything, can you help please to solve this problem?Reason to moving the plugin directory is a restrict FTP access of a user within wp-content and he doesn’t should be access to the plugin directory 😉
Thank you in advance 🙂
Edit:
I see, other plugins have same problem with CSS and JavaScript🤔
Files CSS/JavaScript were not found, error 404 🤔
The topic ‘Plugin useless if plugin dir is moved (CSS/JS)’ is closed to new replies.