• Resolved QBD Solutions

    (@qbd-solutions)


    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://www.ads-software.com/plugins/protect-wp-admin/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Raghunath Gurjar

    (@india-web-developer)

    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

    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

    can u pls chk this and let us know a solution

    Plugin Author Raghunath Gurjar

    (@india-web-developer)

    Hi,

    Can you please tell me the your local host url? (https://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

    Hi,

    https://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/ 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’,’https://localhost:9090/acknos&#8217;);
    define(‘WP_SITEURL’,’https://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 Raghunath Gurjar

    (@india-web-developer)

    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.