Title: What code does WP use for baseurl?
Last modified: August 19, 2016

---

# What code does WP use for baseurl?

 *  [Modifiedcontent](https://wordpress.org/support/users/modifiedcontent/)
 * (@modifiedcontent)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/what-code-does-wp-use-for-baseurl/)
 * I’m trying to integrate WordPress into my site. My site has something like this
   in a config.php:
    `$baseurl = 'http://myawesomesite.com';`
 * WordPress probably has something similar. What is it?
 * I need it for the template files in WordPress. I can’t get $baseurl to work everywhere.
   It gets messy. I should probably just use WordPress native “baseurl” and ideally
   define it somewhere as “wpbaseurl = baseurl/blog”.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Modifiedcontent](https://wordpress.org/support/users/modifiedcontent/)
 * (@modifiedcontent)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/what-code-does-wp-use-for-baseurl/#post-825657)
 * Is it ABSPATH ?
 * Where/how is that defined? If it’s ‘[http://mysite.com/blog&#8217](http://mysite.com/blog&#8217);
   is there any way to use it to get to an address outside /blog?
 *  [seg](https://wordpress.org/support/users/seg/)
 * (@seg)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/what-code-does-wp-use-for-baseurl/#post-825981)
 * Here is some info:
    [http://codex.wordpress.org/Template_Tags/get_bloginfo](http://codex.wordpress.org/Template_Tags/get_bloginfo)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘What code does WP use for baseurl?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [seg](https://wordpress.org/support/users/seg/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/what-code-does-wp-use-for-baseurl/#post-825981)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
