Home › Forums › WordPress Plugins › Hide My WP › /wp-admin display home
- This topic has 8 replies, 2 voices, and was last updated 10 years ago by
Suman M..
-
AuthorPosts
-
June 9, 2015 at 7:51 am #2886
Hello,
All is working well but when i go to /wp-admin, my home page is displayed at this URL with no redirection.
have a look here : http://domain.com/wp-admin/It’s a multisite config :
# 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 ^other/(.*) /wp-includes/$1 [QSA,L] RewriteRule ^file/(.*) /wp-content/uploads/$1 [QSA,L] RewriteRule ^ext/(.*) /wp-content/plugins/$1 [QSA,L] RewriteRule ^skin/([_0-9a-zA-Z-]+)/main.css /index.php?style_wrapper=true&template_wrapper=$1 [QSA,L] RewriteRule ^skin/(.*) /wp-content/themes/$1 [QSA,L] RewriteRule ^ajax /wp-admin/admin-ajax.php [QSA,L] RewriteRule ^(readme\.html|license\.txt|wp-content/debug\.log|wp-includes/$) /nothing_404_404 [QSA,L] RewriteRule ^(((wp-content|wp-includes)/([A-Za-z0-9-_/]*))|(wp-admin/(?!network/)([A-Za-z0-9-_/]+)))(\.txt|/)$ /nothing_404_404 [QSA,L] # END Hide My WP RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] #RewriteRule ^ - [L] #RewriteRule ^(wp-(content|admin|includes).*) $1 [L] #RewriteRule ^(.*\.php)$ $1 [L] #RewriteRule . index.php [L] # END WordPress
-
This topic was modified 10 years ago by
Suman M..
June 9, 2015 at 5:06 pm #2893Hi, the htaccess content looks okay. Can you please generate debug report from start tab and send it to us? Also, did you use the option to rename wp-admin path?
June 9, 2015 at 5:26 pm #2895This reply has been marked as private.June 10, 2015 at 8:51 am #2907It seems like issue with the theme. Any invalid URLs redirect to home page instead of 404 error page. Does the theme has 404.php file?
June 10, 2015 at 8:54 am #2908Hello,
Yes, it’s a redirection to homepage, but with wp-admin, the url doesn’t change. I don’t have this problem with the same install on a test server. It’s really strange. Have you an idea ?
I don’t want a 404 page.
Thank you,
BenJune 11, 2015 at 3:07 am #2919HMWP attempts to load 404 error page for /wp-admin (example: http://hide-my-wp.wpwave.com/wp-admin/) and since there is no 404 page in your case, it loads homepage as set in your site.
June 11, 2015 at 7:38 am #2922Hello,
Is it possible for HMWP to redirect to homepage as my settings of WordPress ?
Thank you for your answer.
June 11, 2015 at 8:16 am #2924This reply has been marked as private.June 12, 2015 at 4:38 am #2928Yes, the URL will not change while displaying 404 page. That’s normal and fine.
-
This topic was modified 10 years ago by
-
AuthorPosts
You must be logged in to reply to this topic.