Answer the question
In order to leave comments, you need to log in
How to properly configure ssl for wordpess located in a subdirectory?
Greetings,
quite often you have to make sketches of sites, and of course, somewhere you need to show these sketches to clients.
Recently, I usually didn’t bother, I put everything in the subpacks of my own website-resume-mini-portfolio - well, it’s normal, in my opinion, I don’t hide anything, here is the structure: my url-projects-your project.
The site itself is simple html, on the apache server. I recently switched everything to https, the whole tree works fine, except for these sites on vorpress, in these subfolders.
Example - a WordPress site in the
.htaccess subfolder of the root
ErrorDocument 403 /404.html
ErrorDocument 404 /404.html
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /projects/labelfox/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /projects/labelfox/index.php [L]
</IfModule>
# END WordPress
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question