Reputation: 4364
I have a serious problem with the links when using https. My knowledge with using https is poor. Although following are the processes that i've done so far.
Scenario:
Results:
However, The Problem:
What i have tried so far !!
I tried updating the general settings url to https. So, it works but the same issue to all pages. All the links are broken.
Followed the instructions on this post https://wordpress.stackexchange.com/questions/75921/ssl-breaks-wordpress-css
Also, in this https://managewp.com/wordpress-ssl-settings-and-how-to-resolve-mixed-content-warnings
But the above did not seem to do the trick. I still have the broken links. What am i missing here? Please suggest.
Thank you
Upvotes: 1
Views: 85
Reputation: 4364
Found the solution finally.. Tried modifying the htaccess file again.
Following is what i added in my htaccess in order to fix the problem. It might be useful to someone in the future.
<IfModule mod_rewrite.c>
#-------------------SUB.DOMAIN.COM---------------------
RewriteCond %{HTTP_HOST} ^subdomain.domain.com
RewriteCond %{DOCUMENT_ROOT}/members%{REQUEST_URI} -f
RewriteRule . %{DOCUMENT_ROOT}/members%{REQUEST_URI} [L]
RewriteCond %{HTTP_HOST} ^ subdomain.domain.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . subdirectory/index.php [L]
#-----------------SUB.DOMAIN.COM---------------------
</IfModule>
# 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
This solved the subdomain issue and the 500 error requests as well as the broken links problem.
Upvotes: 0