Home Forums WordPress Plugins Hide My WP /wp-admin display home

This topic is: not resolved
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2886
    bdemont
    Post count: 6

    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 9 years, 9 months ago by Suman M..
    #2893
    Suman M.
    Post count: 12480

    Hi, 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?

    #2895
    bdemont
    Post count: 6
    This reply has been marked as private.
    #2907
    Suman M.
    Post count: 12480

    It 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?

    #2908
    bdemont
    Post count: 6

    Hello,

    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,
    Ben

    #2919
    Suman M.
    Post count: 12480

    HMWP 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.

    #2922
    bdemont
    Post count: 6

    Hello,

    Is it possible for HMWP to redirect to homepage as my settings of WordPress ?

    Thank you for your answer.

    #2924
    bdemont
    Post count: 6
    This reply has been marked as private.
    #2928
    Suman M.
    Post count: 12480

    Yes, the URL will not change while displaying 404 page. That’s normal and fine.

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

You must be logged in to reply to this topic.