I’m building my first website with wordpress and everything was going well until i realized my site is running in http:// for some reason even though the web hosting says SSL is installed, so I thought changing the URL to https:// inside of wordpress would be a smart idea and it somehow broke the entire site, I can’t access the dashboard anymore and I really dont want to remake the website all over again.
Any idea how I could change the url back so I can access the dashboard again? And after that how do I enable https:// properly?
I’m sorry if thats a really dumb question im just purely lost at the moment haha
[ad_2]
Login to the database (if you can) and change it there.
* Look for the `wp_options` table. (The table prefix `wp_` might be different depending on your installation.)
* Within `wp_options`, find the rows `siteurl` and `home`.
* Click on the ‘Edit’ link next to `siteurl` and `home`, and change the URL to the one you want. Save the changes.
Short answer/lazy solution: Contact your hosting tech support and they should be able to sort it out for you. Unless you have a crappy host 😉
Depending on your host, you can set that somewhere. Otherwise, jist install the “real simple ssl” plugin.
1. Accessing Your Dashboard Again
– Imagine yourself donning a digital detective hat as you log into your hosting account. Navigate through the files like a seasoned explorer until you find your trusty “wp-config.php” file.
– Channel your inner coding wizard and add these lines before the magic “/* That’s all, stop editing! */” incantation:
“`
define(‘WP_HOME’, ‘http://yourdomain.com’);
define(‘WP_SITEURL’, ‘http://yourdomain.com’);
“`
– Replace ‘http://yourdomain.com’ with your actual domain, and presto! You’ve got access to your WordPress dashboard once again!
2. Enabling HTTPS Properly
– Picture yourself as a valiant knight on a quest for the elusive SSL certificate. After confirming its installation by your hosting provider, head back to your WordPress dashboard.
– Journey to Settings > General and boldly replace the HTTP with HTTPS in both the WordPress Address (URL) and Site Address (URL) fields.
– Click that “Save Changes” button like it’s the final boss battle, and behold! Your website is now protected by the mighty SSL shield!
3. Dealing with Mixed Content Errors
– Picture yourself as a fearless bug exterminator, armed with a trusty plugin like “Really Simple SSL”. Activate it and let it work its magic, banishing those mixed content errors to the dark corners of the internet!
– For the hands-on approach, venture into your posts, pages, and theme files like a brave adventurer on a treasure hunt. Replace all HTTP links and references with their HTTPS counterparts.
– With a triumphant click of the mouse, your website is now free from mixed content errors, and you can revel in the glory of your secure, HTTPS-enabled domain!
Armed with these tutorials and a sprinkle of imagination, you’ll conquer the WordPress wilderness like a true digital hero! Remember, every challenge is just another opportunity to level up your web wizard skills!