Title: plugin breaks on local machine
Last modified: August 24, 2016

---

# plugin breaks on local machine

 *  Resolved [QBD Solutions](https://wordpress.org/support/users/qbd-solutions/)
 * (@qbd-solutions)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-breaks-on-local-machine/)
 * Hi,
 * I was hoping you’d be able to help me get the plugin running locally?
 * I have the plugin configured and working correctly on the server but when I try
   and get the application running on my local machine I get a 404:
 * Not Found
 * The requested URL /local_install/new_slug was not found on this server.
    Apache/
   2.4.10 (Ubuntu) Server at localhost Port 80
 * Do you know what may be causing this?
 * Thanks
 * [https://wordpress.org/plugins/protect-wp-admin/](https://wordpress.org/plugins/protect-wp-admin/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [WP-EXPERTS.IN](https://wordpress.org/support/users/india-web-developer/)
 * (@india-web-developer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-breaks-on-local-machine/#post-6022773)
 * Hi,
 * Thanks for contact us!
    May be due to htaccess, you are getting this issue.
 * Have you update your site permalink after setup on your local system?
 * You will have need to look into your site htaccess file.
 * Feel free to contact me for any query!
 * Thanks
    Raghunath
 *  [Ray](https://wordpress.org/support/users/rajulk100/)
 * (@rajulk100)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-breaks-on-local-machine/#post-6022816)
 * Hello,
 * I also have the same issue.. This is a issue when moving server hosted site to
   a local host and then login in to admin panel..
 * How to solve it with .htaccess as per your comment ?
 * e.g this is my .htaccess
 * …………………………….
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L] RewriteRule ^vpsadmin/?$ /wp-login.php [QSA,L] RewriteRule
   ^vpsadmin/register/?$ /wp-login.php?action=register [QSA,L] RewriteRule ^vpsadmin/
   lostpassword/?$ /wp-login.php?action=lostpassword [QSA,L] RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule
   >
 * # END WordPress
 * ………………………….
 * When tried to login with /wp-admin , the admin panel shows but it make users 
   login to live server admin panel not the local host one.
 * This is a good plugin but when moving the site it causes problems (I cannot remove
   this plugin from live site as it is a working site n used by client) unless s
   this can be fixed as far as i think.
 * Thanks
 *  [Ray](https://wordpress.org/support/users/rajulk100/)
 * (@rajulk100)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-breaks-on-local-machine/#post-6022817)
 * can u pls chk this and let us know a solution
 *  Plugin Author [WP-EXPERTS.IN](https://wordpress.org/support/users/india-web-developer/)
 * (@india-web-developer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-breaks-on-local-machine/#post-6022822)
 * Hi,
 * Can you please tell me the your local host url? ([http://localhost/your-folder](http://localhost/your-folder))
 * Did you try access to new admit url after update permanent (Settings >> permalinks)
   and then update to plugin settings.
 * If not then please try , hope your problem will be resolved .
 * Feel free to contact me on my email [raghunath.0087@gmail.com](https://wordpress.org/support/topic/plugin-breaks-on-local-machine/raghunath.0087@gmail.com?output_format=md)
 *  [Ray](https://wordpress.org/support/users/rajulk100/)
 * (@rajulk100)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-breaks-on-local-machine/#post-6022823)
 * Hi,
 * [http://localhost:9090/acknos](http://localhost:9090/acknos)
 * Well without login in, how can you update anything in admin panel mate ?? =D
 * I managed to removed the extension by renaming the plugin with a -disable as 
   per [https://www.ostraining.com/blog/wordpress/disable-a-wordpress-plugin/](https://www.ostraining.com/blog/wordpress/disable-a-wordpress-plugin/)
   this article. but still i could not login as it was taking me to live serve r
   online then I had to hard code the site url to wp-config file as follows
 * define(‘WP_HOME’,’[http://localhost:9090/acknos&#8217](http://localhost:9090/acknos&#8217););
   
   define(‘WP_SITEURL’,’[http://localhost:9090/acknos/&#8217](http://localhost:9090/acknos/&#8217););
 * Then i logged in to admin panel and removed the plugin. After that .htaccess 
   file was replaced with a general .htaccess as follows..
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /acknos/
   RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond%{
   REQUEST_FILENAME} !-d RewriteRule . /acknos/index.php [L] </IfModule>
 * # END WordPress
 * Now i`am using it without the plugin. This is good useful plugin but only has
   to use it once site is finalized and hosted otherwise would be a problem when
   taking a copy to local host to make changes.. I think this bit you hav eto chk
   or give some solution.. other than that big issue.. this is a superb plugin to
   secure admin panel..
 * Regards
    Raj
 *  Plugin Author [WP-EXPERTS.IN](https://wordpress.org/support/users/india-web-developer/)
 * (@india-web-developer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-breaks-on-local-machine/#post-6022827)
 * Hi Raj,
 * After update your permalink did you active my plugin on your localhost?
 * When you will activate and and enable plugin with new admin slug (i.e vpsadmin)
   then your htaccess will be look like this:
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /acknos/
   RewriteRule ^index\.php$ – [L] RewriteRule ^vpsadmin/?$ /acknos/wp-login.php [
   QSA,L] RewriteRule ^vpsadmin/register/?$ /acknos/wp-login.php?action=register[
   QSA,L] RewriteRule ^vpsadmin/lostpassword/?$ /acknos/wp-login.php?action=lostpassword[
   QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-
   d RewriteRule . /acknos/index.php [L] </IfModule> # END WordPress
 * Hope your problem will be resolved.
 * Thanks
    Raghunath

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘plugin breaks on local machine’ is closed to new replies.

 * ![](https://ps.w.org/protect-wp-admin/assets/icon-128x128.png?rev=1016876)
 * [Protect WP Admin](https://wordpress.org/plugins/protect-wp-admin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/protect-wp-admin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/protect-wp-admin/)
 * [Active Topics](https://wordpress.org/support/plugin/protect-wp-admin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/protect-wp-admin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/protect-wp-admin/reviews/)

## Tags

 * [apache2](https://wordpress.org/support/topic-tag/apache2/)

 * 6 replies
 * 3 participants
 * Last reply from: [WP-EXPERTS.IN](https://wordpress.org/support/users/india-web-developer/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-breaks-on-local-machine/#post-6022827)
 * Status: resolved