Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
I tried removing those lines, it didnt solve the problem so I reverted back. I even deleted the entire htaccess file. Wordpress wouldnt load, but the root homepage still had the loop issue.
If it is wordpress you might have to update site links in the database to https it will show http://mysite.com but when switching to https it needs to be changed to https://mysite.com
It is in the āwordpressā database in MySQL or if you custom set it up as something different
In the āwp_optionsā table, look for āsiteurlā and āhomeā
You need to find where certbot made the redirectionā¦
Find where your 443 vhost config is: grep -Eri 'efficiencyiseverything.com|SSLCertificate' /etc/apache2 /var/www/html /etc/httpd
@stevenzhu good idea.
This should be enough: apache2ctl -S | grep -i rewrite
On second thought, it may not show which file the rewrite line was in... apache2ctl -S > /tmp/config.file vi /tmp/config.file
and find "rewrite" then scroll up slowly looking for which file contains it.
[EDIT]
I think we may both be thinking about how NGINX shows the output.
Not sure apache will show what we are looking for (which file contains the rewrite).
This may come close enough: apache2ctl -t -D DUMP_VHOSTS
I am trying to mess with the wp_options but Iām running into two stupid problems. HediSQL on my windows isnt connecting, maybe I need to whitelist or SSH in, but I cant access it from there. Iād simply mess with mysql, but when I select * from wp_options, Iām getting too much text to put on the screen.
The long hard way results in:
/etc/apache2/sites-available/efficiencyiseverything.com.conf:# domain: efficiencyiseverything.com
/etc/apache2/sites-available/efficiencyiseverything.com.conf:# public: /var/www/efficiencyiseverything.com/public_html/
/etc/apache2/sites-available/efficiencyiseverything.com.conf: ServerAdmin webmaster@efficiencyiseverything.com
/etc/apache2/sites-available/efficiencyiseverything.com.conf: ServerName www.efficiencyiseverything.com
/etc/apache2/sites-available/efficiencyiseverything.com.conf: ServerAlias efficiencyiseverything.com
/etc/apache2/sites-available/efficiencyiseverything.com.conf: DocumentRoot /var/www/efficiencyiseverything.com/public_html
/etc/apache2/sites-available/efficiencyiseverything.com.conf: ErrorLog /var/www/efficiencyiseverything.com/log/error.log
/etc/apache2/sites-available/efficiencyiseverything.com.conf: CustomLog /var/www/efficiencyiseverything.com/log/access.log combined
/etc/apache2/sites-available/efficiencyiseverything.com.conf:RewriteCond %{SERVER_NAME} =www.efficiencyiseverything.com [OR]
/etc/apache2/sites-available/efficiencyiseverything.com.conf:RewriteCond %{SERVER_NAME} =efficiencyiseverything.com
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf:# domain: efficiencyiseverything.com
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf:# public: /var/www/efficiencyiseverything.com/public_html/
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf: ServerAdmin webmaster@efficiencyiseverything.com
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf: ServerName www.efficiencyiseverything.com
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf: ServerAlias efficiencyiseverything.com
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf: DocumentRoot /var/www/efficiencyiseverything.com/public_html
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf: ErrorLog /var/www/efficiencyiseverything.com/log/error.log
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf: CustomLog /var/www/efficiencyiseverything.com/log/access.log combined
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf:SSLCertificateFile /etc/letsencrypt/live/www.efficiencyiseverything.com/cert.pem
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf:SSLCertificateKeyFile /etc/letsencrypt/live/www.efficiencyiseverything.com/privkey.pem
/etc/apache2/sites-available/efficiencyiseverything.com-le-ssl.conf:SSLCertificateChainFile /etc/letsencrypt/live/www.efficiencyiseverything.com/chain.pem
/etc/apache2/sites-available/default-ssl.conf: # SSLCertificateFile directive is needed.
/etc/apache2/sites-available/default-ssl.conf: SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
/etc/apache2/sites-available/default-ssl.conf: SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
/etc/apache2/sites-available/default-ssl.conf: # Point SSLCertificateChainFile at a file containing the
/etc/apache2/sites-available/default-ssl.conf: # the referenced file can be the same as SSLCertificateFile
/etc/apache2/sites-available/default-ssl.conf: #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt
/etc/apache2/conf-available/servername.conf:ServerName www.efficiencyiseverything.com
Latest update, I modified my wp-config file and now the homepage loads. The rest of the pages are not loading and it seems the redirect still exists in wordpress.
Today I have also updated all http:/ to https:/ in both the database and many wordpress files. I can log in, but the wordpress dashboard isnt coming up. Very strange. the css on the non homepage cant be found either.
Where does certbot change redirects?
Here is a printout of that file, I did comment out the rewrite rule, did not seem to change anything.
# domain: efficiencyiseverything.com
# public: /var/www/efficiencyiseverything.com/public_html/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin webmaster@efficiencyiseverything.com
ServerName www.efficiencyiseverything.com
ServerAlias efficiencyiseverything.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /var/www/efficiencyiseverything.com/public_html
# Log file locations
LogLevel warn
ErrorLog /var/www/efficiencyiseverything.com/log/error.log
CustomLog /var/www/efficiencyiseverything.com/log/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.efficiencyiseverything.com [OR]
RewriteCond %{SERVER_NAME} =efficiencyiseverything.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Following a tutorial I added a redirect similar to what certbot ads to my .htaccess. This redundancy was awful. Pestered until I finally deleted the code.
I needed to update wp-options and wp-config to use https://website.com/wordpress/ A tutorial I used got rid of the use of /wordpress/ but this wasnt discovered until late.
Lots learned. I knew there was a loop, but wasnt sure what files were controlling and how.