Where is the home URL set in WordPress?

Go to Admin > Settings > General – paste https://sitename in both the WordPress Address (URL) and Site Address (URL) fields. You can also edit these values in wp-config.php by adding the following. define( ‘WP_HOME’, ‘http://example.com’ ); define( ‘WP_SITEURL’, ‘http://example.com’ ); Or edit the values directly in the database by editing the wp_options table and … Read more

I don’t see site_url and home_url fields in wp_options table (phpMyAdmin)?

Check wp-config.php. It’s possible to define these values there, in which case they won’t be available as settings, which means they won’t be saved in the database. It is possible to set the site URL manually in the wp-config.php file. Add these two lines to your wp-config.php, where “example.com” is the correct location of your … Read more

Remove / from www.example.com/ [closed]

This isn’t a WordPress thing, this is a browser/HTTP thing. Firefox may be showing the / as part of a setting, but example.com and example.com/ are the same URL. This Q on webmasters goes into more detail as to why this is the case: https://webmasters.stackexchange.com/questions/35643/is-trailing-slash-automagically-added-on-click-of-home-page-url-in-browser

Putting my site live

This question has been asked many many times before. Here’s the Codex: http://codex.wordpress.org/Changing_The_Site_URL The easiest thing to do is add a couple of lines to your wp-config.php define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’);

home_url(); showing current page instead of site address

Since you didn’t post actual code in your question, I can only speculate. However, a common problem is that, when calling home_url(), it is not echoed. The value of the function is returned, rather than echoed, so it must be explicitly echoed by the code. I’m guessing you have something like this: <a href=”https://wordpress.stackexchange.com/questions/95730/<?php home_url(); … Read more

Headless WordPress – Issue with plugin path

I understand the question and answer are from more than a year ago, but I just wanted to add some additional information in hopes it might be useful for future visitors of this Question. Recently, while setting up a Headless WordPress CMS with Roots Bedrock, I came across the same issue and solved it with … Read more