htaccess + SSL + WordPress
-
I have been having a few problems setting up SSL and https on my wordpress install.
I have 2 domains (1 main and 1 sub)
https://smartphotocourses.com
https://my.smartphotocourses.comFolder Heirachy
https://smartphotocourses.com – public_html/smart/
https://my.smartphotocourses.com – public_html/smart/mysmartEach time I try to save permalink settings in my main domain it breaks my subdomain creating a 500 internal server error.
This I believe is due to htaccess wordpress. Re-saving the permalinks adds the standard wordpress mod_rewrite, if i delete this it then resolves the issue. Any ideas as I am way over my head here.
# Custom subdomain .htaccess SSL + WordPress RewriteEngine On RewriteCond %{HTTP_HOST} ^my.smartphotocourses.com$ RewriteCond %{REQUEST_URI} !^/mysmart/ RewriteRule ^(.*)$ /mysmart/$1 RewriteCond %{HTTP_HOST} ^my.smartphotocourses.com$ RewriteRule ^(/)?$ mysmart/index.php [L] # End custom subdomain .htaccess # Custom maindomain .htaccess WordPress RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(www.)?smartphotocourses.com$ RewriteRule ^index\.php$ - [L] RewriteCond %{HTTP_HOST} ^(www.)?smartphotocourses.com$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # End custom maindomain .htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘htaccess + SSL + WordPress’ is closed to new replies.