giving wordpress its own directory admin problem
-
I created the website a while ago. I placed it in it’s own directory and I think it worked fine back then. I did it for protection purposes, so hack bots would not be able to determine the location of the log in page.
I checked that with 2 different websites. It’s the same result.When I go to https://www.mydomain.com/wp-login.php or https://www.mydomain.com/wp-admin, it redirects me to https://www.mydomain.com/blog/wp-login.php to the log in page. It should have shown an error page instead. That’s what I’m looking for in the first place.
Settings > General:
WordPress Address (URL): https://www.mydomain.com/blog
Site Address (URL): https://www.mydomain.comindex.php in the https://www.mydomain.com/ directory:
<?php
/**
* Front to the WordPress application. This file doesn’t do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*//**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define(‘WP_USE_THEMES’, true);/** Loads the WordPress Environment and Template */
require(‘./blog/wp-blog-header.php’);Thank you.
- The topic ‘giving wordpress its own directory admin problem’ is closed to new replies.