wp-login.php is an actual file that is directly loaded up instead of using a rewrite rule. If you look at file listing in /var/www/vhosts/www.example.com/, you’ll probably will not see the wp-login.php file. But if you check /var/www/vhosts/www.example.com/wp-core/, you’ll probably find it if I understand your configuration correctly. This means your login URL is actually: http://www.example.com/wp-core/wp-login.php
Now there is another issue with your current setup. WordPress doesn’t know the URL to where the core files and hence the admin area of the site. By default, WordPress uses the same URL for the public side (home url) and the installation folder (site url). You can configure this in your wp-config.php file:
define( 'WP_SITEURL', 'http://example.com/wp-core' ); // Where the WP core is
define( 'WP_HOME', 'http://example.com/' ); // Where the public goes to view your blog
Related Posts:
- Custom domain for sub-section of parent website
- Menu links only using http after enabling https, unable to redirect http links
- How to create a 301 redirect that doesn’t apply to subsites
- Why does multisite bypass WordPress for wp-content, wp-admin, wp-includes and .php files?
- .htaccess rule to redirect old URLs to new structure [closed]
- Redirections and rewrites to subdomain
- How To Fix A Redirect Chain
- Image URLs not redirecting properly
- How to remove the [L] Flag for WordPress index .php mod_rewrite
- Redirect – remove custom query string
- Understanding Redirects
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- htaccess and redirect to new url using regex
- WordPress on a subfolder but accessible from root
- Redirect Restricted Page to 404
- Redirect user to original url after login?
- Redirect to dashboard after login
- Make a video post redirect to next post after completion
- Site redirects to wrong url when saving settings
- Redirect blog page to latest post?
- WordPress site redirects to different wordpress domain on the same server after reuploading db backup
- WordPress Redirect based on the prescence of a cookie
- Links to an exisiting Page are now redirecting to a draft page?
- Random and Erroneous WordPress Redirect
- Redirect Old domain & posts to new domain homepage
- Redirecting users to referrer page after logging in using custom login form
- Remove lost password form and URL
- add_rewrite_rule to pass entire path as a single parameter
- What is the wordpress way of displaying local external content?
- How To Only Allow Users To View Their Own Buddypress Profiles? [closed]
- htaccess redirect dynamic posts
- RedirectMatch and Redirect interfering with each other
- Redirect all pages to homepage but still allow dashboard
- some url does not redirect from http to https
- Why can’t I access files / directories outside of wordpress
- Return to where the user was, after log out
- Change ‘Back To Website’ link in wp-login.php
- How do I map a subdomain in wordpress to the primary domain in a multisite setup?
- Redirect the non-www version of the site to the www
- htaccess rules not applied?
- Load time cost of using a redirect plugin v direct .htaccess entry
- Intercept the “lost password” action by first redirecting to an existing instructions page
- How to pass email values from one php page to another
- How to redirect after login getting a variable from url (for example with the language)
- How to set 301 redirection after moving WordPress blog?
- How to include error message on login
- How to use a custom domain?
- Changing siteurl and homeurl – internal links redirect to home page?
- WooCommerce unexpected behavior [closed]
- How to remove wordpress directory slash
- Force WordPress to load from site’s hostname
- redirect Login problems
- 301 redirection editing .htaccess doesn’t work
- Redirect custom post type from one domain to another domain
- How can I force the user to log in, even if they’re already authenticated?
- 301 redirect instead of 404 when URL is a prefix of a post or page name?
- 301-redirect directives for blogger to wordpress migration
- Redirect users after register (first login) and force submit post
- Some admin pages redirecting to front page on save
- Stop Redirecting to and from www
- How to pass a message using template_redirect
- .htaccess 301 redirect conflict with plugin “WordPress Https”
- How to redirect just one or two blog posts correctly?
- Force WordPress https redirect before www redirect based on site address url
- Prevent wordpress autoredirect
- Custom form redirect after login
- How to redirect only 404 pages with htaccess in WordPress
- How to redirect the frontend of a WordPress site (only)?
- Redirect Attachment Page to Attachment
- Redirect away from page if user is not admin
- redirect to a child theme based on the town of Internet users in france with the verification of the ip address
- How do I change the home page to the registered user’s profile page
- Conditional Redirect
- Upload Directory question
- 301 Redirect /author/username/ to /profile/username/
- Redirection with a wildcard
- How can I stop redirecting from a search to a taxonomy archive page
- How to return a 410 code for previously published posts now set to draft?
- The / location 301-redirects to itself in a loop
- Redirect user from backend to frontend
- Need to redirect from Apache2 Ubuntu Default Page to home page in wordpress
- Make a treatment before the action of the form
- Is it possible to take a new visitor to the site to a disclaimer page and then return them to their previous page?
- How to 301 redirect sub domain post URL to root domain
- Homepage (domain) that redirects user toward two subdomains based on his/her preferred language
- redirect to another page if user has registered successfully
- Too many redirects error when change of base url
- How to redirect new registrars to a custom registration page instead of WP default registration page?
- WordPress redirect users from certain countries to subpage of language version
- When redirecting all URLs to homepage, what exceptions do I need to make?
- Force SSL on a single page which is used as iFrame
- Redirect from subdomain
- How to redirect all pages of a blog to a new blog
- How to handle expired assets/content when user has direct URL
- Best SEO way to redirect from all “posts” to home url
- After migration index page still redirects to old url
- Redirect to File attached to a Post using ACF
- Redirect WordPress multilingual website to the domain
- How to prevent wordpress from redirecting media attachment page to media page?
- How can I do automatic redirects to canonical URLs as defined by Yoast SEO?