Reputation: 121
I'm new to wordpress, I just install wordpress and want to set my site's base_url
. Please any one help me with this.
Thanks in advance.
Upvotes: 12
Views: 25545
Reputation: 31
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 site.
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
Hope this will help you..
Upvotes: 2
Reputation: 176
just insert code
<?php echo home_url(); ?>
for exemple:
<link rel="icon" href="<?php echo home_url();?>/wp-content/uploads/2015/02/logo-symbol-43x43.png" sizes="32x32" />
Upvotes: 4
Reputation: 205
Follow these steps
Hope this will help you!
Upvotes: 2
Reputation: 1128
To set urls in your wordpress application just go to Settings tab at left hand side and go to general tab and set site address(url).
Upvotes: 7
Reputation: 618
In "wp_options" table set "siteurl" and "home" fields value.
Upvotes: 12
Reputation: 953
You can change it in your database table wp_options or in your file wp-config.php like so: https://codex.wordpress.org/Changing_The_Site_URL
Upvotes: 5