Home Forums WordPress Plugins Hide My WP Multisite Apache

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Suman M. 3 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26294

    Here’s my .htaccess and I can’t now log in

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    # BEGIN Hide My WP

    RewriteRule ^static/lib/js/embed\.min\.js /wp-includes/js/wp-embed.min.js?sgcle_hide_my_wp=1234 [QSA,L]
    RewriteRule ^login\.php /login\.php?sgcle_hide_my_wp=1234 [QSA,L]
    RewriteRule ^static/lib/(.*) /wp-includes/$1?sgcle_hide_my_wp=1234 [QSA,L]
    RewriteRule ^file/(.*) /wp-content/uploads/$1?sgcle_hide_my_wp=1234 [QSA,L]
    RewriteRule ^static/ext/(.*) /wp-content/plugins/$1?sgcle_hide_my_wp=1234 [QSA,L]
    RewriteRule ^static/(.*) /wp-content/themes/$1?sgcle_hide_my_wp=1234 [QSA,L]
    RewriteRule ^ajax /wp-admin/admin-ajax.php?sgcle_hide_my_wp=1234 [QSA,L]
    RewriteRule ^(readme\.html|license\.txt|wp-content/debug\.log|wp-includes/$) /nothing_404_404?sgcle_hide_my_wp=1234 [QSA,L]
    RewriteRule ^(((wp-content|wp-includes)/([A-Za-z0-9\-\_\/]*))|(wp-admin/(!network\/?)([A-Za-z0-9\-\_\/]+)))(\.txt|/)$ /nothing_404_404?sgcle_hide_my_wp=1234 [QSA,L]

    # END Hide My WP

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # php — END cPanel-generated handler, do not edit

    #26298
    Suman M.
    Post count: 10625

    Hi, did you also rename wp-admin path name in HMWP settings? If you’ve applied one of the pre-made settings then the default login url is:
    http://www.YourDomain.com/wp-login.php?hide_my_wp=1234

    Let us know!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.