Changing the site URL

If you have access to phpmyadmin the best way in my opinion is to get WP migrate Db Plugin, then create an export sql file with new url address and upload it with PhpmyAdmin. That way you ensure that every place in the site with old url get replaced with new url in a safe … Read more

Displays url’s twice and getting 404 errors after activating

Sounds like your Apache httpd.conf is missing a virtual host entry for port 443. Listen 443 <VirtualHost *:443> ServerName www.foo.com DocumentRoot /var/www/www.foo.com/htdocs CustomLog /var/log/apache/www.foo.com-access.log combined ErrorLog /var/log/apache/www.foo.com-error.log # Example SSL configuration SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLCertificateFile “/var/www/www.foo.com/ssl/server.crt” SSLCertificateKeyFile “/var/www/www.foo.com/ssl/server.key” </VirtualHost> Source: http://wiki.apache.org/httpd/ExampleVhosts

Removing all my hardcoded URLs with get_site_url()

You actually already were pretty close: function autoblank($text) { $return = str_replace(‘href=”https://wordpress.stackexchange.com/questions/138730/,”target=”_blank” href=”, $text); $return = str_replace( “target=”_blank” href=”‘ . get_site_url(), ‘href=”‘ . get_site_url(), $return ); $return = str_replace(‘target=”_blank” href=”#”https://wordpress.stackexchange.com/questions/138730/,”href=”#’, $return); return $return; } add_filter(‘the_content”https://wordpress.stackexchange.com/questions/138730/,”autoblank’); add_filter(‘comment_text”https://wordpress.stackexchange.com/questions/138730/,”autoblank’);