Title: URL in multisite
Last modified: August 20, 2016

---

# URL in multisite

 *  [webladynz](https://wordpress.org/support/users/webladynz/)
 * (@webladynz)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/url-in-multisite/)
 * I have wordpress installed on Windows 7 using Xampp. It is installed in localhost/
   wordpress.
 * I have setup a multisite with one site. I have amended my virtual hosts and hosts
   and htaccess files as follows :-
    ———————————————————– 127.0.0.1 localhost 127.0.0.1
   wordpress ———————————————————– ‘<VirtualHost *:80> DocumentRoot “D:/xampp/htdocs/”
   ServerName localhost </VirtualHost>
 * <VirtualHost *:80>
    DocumentRoot D:/xampp/htdocs/wordpress ServerName wordpress
   <Directory “D:/xampp/htdocs/wordpress”> Options Indexes FollowSymLinks AllowOverride
   FileInfo Order allow,deny Allow from all </Directory> </VirtualHost>’ ———————————————————–‘
   RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ – [L]
 * # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.
   php?file=$2 [L]
 * # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$
   $1wp-admin/ [R=301,L]
 * RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d RewriteRule
   ^ – [L] RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] RewriteRule
   ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L]’ ——————————————————————–
 * From my brower I am able to access the following:-
 * localhost —> Xampp Admin
    wordpress —> localhost/wordpress localhost/wordpress/
   tpc —> site 1 ———————————————————–
 * Ideally I would simple like to type in tpc to get to my site.
 * I know in drupal, which creates actual folders for its sites, this would be done
   with ease, but I stuck on getting it to work on the Virtual Sites created by 
   wordpress.

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

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/url-in-multisite/#post-2206669)
 * > Ideally I would simple like to type in tpc to get to my site.
 * you do that in your hosts file.
 * THEN you install wordpress there so it has tpc in the domain name areas. I’d 
   also suggest using a fake extension like .loc, so its tpc.loc.
 *  Thread Starter [webladynz](https://wordpress.org/support/users/webladynz/)
 * (@webladynz)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/url-in-multisite/#post-2206735)
 * So is there anyway this can be manually amended since I installed workpress before
   I made entries into the hosts file.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/url-in-multisite/#post-2206767)
 * Yeah, go into the db and fix all the urls. 😉

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

The topic ‘URL in multisite’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 3 replies
 * 2 participants
 * Last reply from: [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/url-in-multisite/#post-2206767)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
