Title: Multisite URL Error when clicking Network Admin
Last modified: August 19, 2016

---

# Multisite URL Error when clicking Network Admin

 *  [davidneudorfer](https://wordpress.org/support/users/davidneudorfer/)
 * (@davidneudorfer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/)
 * When I click on Network Admin this is the how the link is formatted: [http://<domain&gt](http://<domain&gt);.
   com<domain>_comwp-admin/network/
 * I can fix it by changing it to [http://<domain&gt](http://<domain&gt);.com/wp-
   admin/network/ and then I can access the Network Admin page.
 * Then when I go to access a subdomain this is how the link is formatted:
    [http://<subdomain&gt](http://<subdomain&gt);.
   <domain>.com<domain>_com/
 * Where did I go wrong that it’s adding a <domain>_com to what’s already there?
 * **Thank you in advance.**
 * David
 * Below is my config file:
 *     ```
       <?php
       /** WordPress's config file **/
       /** http://wordpress.org/   **/
   
       // ** MySQL settings ** //
       define('DB_NAME', '<domain>_com');     // The name of the database
       define('DB_USER', '****');     // Your MySQL username
       define('DB_PASSWORD', '****'); // ...and password
       define('DB_HOST', 'mysql.<domain>.com');     // ...and the server MySQL is running on
   
       // Change the prefix if you want to have multiple blogs in a single database.
   
       $table_prefix  = '****';   // example: 'wp_' or 'b2' or 'mylogin_'
   
       // Turning off Post Revisions. Comment this line out if you would like them to be on.
   
       define('WP_POST_REVISIONS', false );
   
       // Change this to localize WordPress.  A corresponding MO file for the
       // chosen language must be installed to wp-includes/languages.
       // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
       // to enable German language support.
       define ('WPLANG', '');
   
       define('WP_ALLOW_MULTISITE', true);
   
       define( 'MULTISITE', true );
       define( 'SUBDOMAIN_INSTALL', true );
       $base = '<domain>_com';
       define( 'DOMAIN_CURRENT_SITE', '<domain>.com' );
       define( 'PATH_CURRENT_SITE', '<domain>_com' );
       define( 'SITE_ID_CURRENT_SITE', 1 );
       define( 'BLOG_ID_CURRENT_SITE', 1 );
   
       **** auth keys have been deleted ****
   
       /* Stop editing */
   
       $server = DB_HOST;
       $loginsql = DB_USER;
       $passsql = DB_PASSWORD;
       $base = DB_NAME;
   
       define('ABSPATH', dirname(__FILE__).'/');
   
       // Get everything else
       require_once(ABSPATH.'wp-settings.php');
       ?>
       ```
   

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

 *  Thread Starter [davidneudorfer](https://wordpress.org/support/users/davidneudorfer/)
 * (@davidneudorfer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/#post-1935103)
 * I realized that my .htaccess file wasn’t correct so I changed it to
 *     ```
       RewriteEngine On
       RewriteBase <domain>_com
       RewriteRule ^index\.php$ - [L]
   
       # uploaded files
       RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
   
       RewriteCond %{REQUEST_FILENAME} -f [OR]
       RewriteCond %{REQUEST_FILENAME} -d
       RewriteRule ^ - [L]
       RewriteRule . index.php [L]
       ```
   
 * now the site is throwing me a 500 error and the logs say that:
 * [Thu Feb 24 02:29:16 2011] [alert] [client 207.215.246.36] /home/<username>/<
   domain>.com/.htaccess: RewriteBase: argument is not a valid URL
 * Any suggestions are welcome. Thanks!
 * David
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/#post-1935208)
 * > Where did I go wrong that it’s adding a <domain>_com to what’s already there?
 * ou’re on Dreamhost and you used the One Click install.
 * Go to wp-config.php, scroll to the very bottom. take out the
 * $base = YOUR DB NAME
 * line. And save. Now make another test blog. Then it works.
 *  Thread Starter [davidneudorfer](https://wordpress.org/support/users/davidneudorfer/)
 * (@davidneudorfer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/#post-1935263)
 * You’re right. That was pretty dumb of me. I hope I can fix it without completely
   starting from scratch! I removed the line and I’m still getting a error though.
 *  /home/<user>/<domain>.com/.htaccess: RewriteBase: argument is not a valid URL,
   referer: [http://<domain&gt](http://<domain&gt);.com/
 * Thanks for the help though!
 * David
 *  Thread Starter [davidneudorfer](https://wordpress.org/support/users/davidneudorfer/)
 * (@davidneudorfer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/#post-1935267)
 * If I change the .htaccess from
 * `RewriteBase <domain>_com`
 * to
 * `RewriteBase /`
 * The error 500 stops but I’m back to the same problem I had before.
 * My next step was to change the wp-config.php from
 * `define( 'PATH_CURRENT_SITE', 'alwaysfreerefills_com' );`
 * to
 * `define( 'PATH_CURRENT_SITE', '/' );`
 * This fixed the problem of when I click on Network Admin the link would be formatted
   like: [http://<domain&gt](http://<domain&gt);.com<domain>_comwp-admin/network/
 * it now was formatted correctly but when trying to visit new subdomains from the
   Site’s page in Network Admin the link is still formatted like:
 * [http://<subdoamin&gt](http://<subdoamin&gt);.<domain>.com<domain>_com/
 *  Thread Starter [davidneudorfer](https://wordpress.org/support/users/davidneudorfer/)
 * (@davidneudorfer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/#post-1935269)
 * Found the problem. When creating a new site it sets the path to <domain>_com/.
   If I click edit site and remove that, leaving only / everything works **flawlessly**.
   What do I need to change so that this doesn’t need to be manually changed each
   time?
 *  Thread Starter [davidneudorfer](https://wordpress.org/support/users/davidneudorfer/)
 * (@davidneudorfer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/#post-1935280)
 * This is also set incorrectly,
 * `Fileupload Url http://<subdomain>.<domain>.com<domain>_com/files`
 *  [Dab12](https://wordpress.org/support/users/dab12/)
 * (@dab12)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/#post-1935299)
 * When I try to enter in admin I`ve got this pb since I tried to update to WP 3.1:
   
   Fatal error: Call to undefined function is_network_admin() in /home/putinaem/
   public_html/wp-admin/admin-header.php on line 16.
 * How could I fix it please?
    Thank you. db
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/#post-1935302)
 * [@dab12](https://wordpress.org/support/users/dab12/) start a new thread please
 * [@david](https://wordpress.org/support/users/david/) – so yes, you are on dreamhost?
 * You do have to remove that line from config like I said.
 * And yes, you do need to fix the base in htaccess as well.
 * NEITHER of those fixes will fix the test sites you already made. they will only
   affect new sites.
 * Also, multiple postings after you change multiple things make it harder for us
   to help. 😉

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

The topic ‘Multisite URL Error when clicking Network Admin’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 8 replies
 * 3 participants
 * Last reply from: [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/multisite-url-error-when-clicking-network-admin/#post-1935302)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
