Title: FORCE_SSL_ADMIN Sub Directory Installation
Last modified: August 30, 2016

---

# FORCE_SSL_ADMIN Sub Directory Installation

 *  [denspad](https://wordpress.org/support/users/denspad/)
 * (@denspad)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/force_ssl_admin-sub-directory-installation/)
 * Hi All,
 * This is my first post in the forum and wondered if anyone could help me resolve
   a really frustrating issue.
 * When I install WordPress in the ‘root’ directory on my hosting server and then
   enable FORCE_SSL_ADMIN in the wp-config.php file, the server redirects me correctly
   to [https://www.mydomain.com](https://www.mydomain.com)
 * However, I am installing a new site into a sub-directory of my server. When I
   enable the same setting FORCE_SSL_ADMIN in the wp-config.php file and then navigate
   to [http://www.mydomain.com/myinstall/wp-admin](http://www.mydomain.com/myinstall/wp-admin),
   the server correctly redirects me to [https://www.mydomain.com/myinstall/wp-admin](https://www.mydomain.com/myinstall/wp-admin)
   but generates an error:
 * Not Found
    The requested URL /myinstall/wp-admin/ was not found on this server.
 * Can anyone tell me what I need to do to fix this?
 * Kind Regards,
 * Alan.

Viewing 1 replies (of 1 total)

 *  [Keith Petkus](https://wordpress.org/support/users/kpetku/)
 * (@kpetku)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/force_ssl_admin-sub-directory-installation/#post-6483217)
 * Hi Alan,
 * Is the site hosted on Apache, please sure that mod_rewrite is enabled, the `AllowOverride
   All` directive is being applied, the `DocumentRoot` is the same for both the 
   SSL and port 80 vhost config file, and finally ensure there is a valid `.htaccess`
   file at play. Here’s a [related stackoverflow post](http://wordpress.stackexchange.com/questions/145119/enabling-ssl-on-wordpress-results-in-404)
   on the matter.
 * I hope this helps point you in the right direction.
 * Regards,
    Keith

Viewing 1 replies (of 1 total)

The topic ‘FORCE_SSL_ADMIN Sub Directory Installation’ is closed to new replies.

## Tags

 * [FORCE_SSL_ADMIN](https://wordpress.org/support/topic-tag/force_ssl_admin/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)
 * [Sub directory install](https://wordpress.org/support/topic-tag/sub-directory-install/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Keith Petkus](https://wordpress.org/support/users/kpetku/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/force_ssl_admin-sub-directory-installation/#post-6483217)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
