Title: admin_url
Last modified: August 20, 2016

---

# admin_url

 *  [lohray](https://wordpress.org/support/users/lohray/)
 * (@lohray)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin_url/)
 * [http://codex.wordpress.org/Function_Reference/admin_url](http://codex.wordpress.org/Function_Reference/admin_url)
   has a section with examples
 *     ```
       home_url()	 Home URL	http://www.example.com
       site_url()	 Site directory URL	http://www.example.com OR http://www.example.com/wordpress
       admin_url()	 Admin directory URL	http://www.example.com/wp-admin/
       includes_url()	 Includes directory URL	http://www.example.com/wp-includes/
       content_url()	 Content directory URL	http://www.example.com/wp-content/
       plugins_url()	 Plugins directory URL	http://www.example.com/wp-content/plugins/
       ```
   
 * In all the WP docs (especially related to multisite), is it assumed that WP is
   inststalled at [http://www.example.com/](http://www.example.com/)? Or is it at
   [http://www.example.com/wordpress](http://www.example.com/wordpress) ?
 * The trouble I am having is that the admin_url(‘abc.php’) is generating [http://www.example.com/wp-admin/abc.php](http://www.example.com/wp-admin/abc.php)
   while my wordpress is at [http://www.example.com/wordpress](http://www.example.com/wordpress)
 * To serve WP from [http://example.com/](http://example.com/) in a few of the sites(
   multisite installation), I am creating a .htaccess with rewrite rules to send
   all requests to [http://www.example.com/](http://www.example.com/) to [http://www.example.com/wordpress/](http://www.example.com/wordpress/)(
   all requests except the request for wordpress/ itself).
 * My Home is [http://www.example.com/wordpress/](http://www.example.com/wordpress/)
   
   Siteurl [http://www.example.com/](http://www.example.com/)
 * Should the admin_url not be returning home/wp-admin ? it seems to be returning
   siteurl/wp-admin. Have I reached a specific situation where the WP core is breaking
   down?
 * What I am trying to do is serve WP at [http://site1.example.com/](http://site1.example.com/)
   instead of [http://site1.example.com/wordpress/](http://site1.example.com/wordpress/)
   while the wordpress is located at [http://www.example.com/wordpress/](http://www.example.com/wordpress/)

The topic ‘admin_url’ is closed to new replies.

## Tags

 * [home](https://wordpress.org/support/topic-tag/home/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [lohray](https://wordpress.org/support/users/lohray/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/admin_url/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
