Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8957159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:55:23+00:00 2026-06-15T14:55:23+00:00

I have to manage a few websites. For testing I have a local (

  • 0

I have to manage a few websites. For testing I have a local (localhost) copy and an online copy.

The cms engine http://Pyrocms.com has a multi-site manager and you enter a domain. In the browser you enter the domain name and it serves the website for the request site that is stored in a central database.

Online this works fine but locally it doesn’t, I end up having to type

localhost/silo1/myclient1/

I would like to be able to type

myclient1.test

The first thing I thought of was lmhost file, but I releasise I cant map to the sub directories, just the IP addresses.

Below is what I tried to do in the host file in Windows7, it didnt work, it just directed me to 127.0.0.1 when I entered mywebsite2.test.

HOST FILE – AKA LMHOST

File stored @ #C:\Windows\System32\drivers\etc
lmhost/host file
127.0.0.1                   mywebsite1.test
127.0.0.1/mywebsite2/       mywebsite2.test  **#I want to do something like this**

Technologies:

  • OS: Windows7 Server: WAMP 2

  • (Apache with Mod Rewrite on)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:55:25+00:00Added an answer on June 15, 2026 at 2:55 pm

    If I understand you correctly, the only way you are going to accomplish that is by…

    Editing the HOSTS file (not LMHOSTS) to resolving your fake domain-name to the loopback address (127.0.0.1).

    127.0.0.1 myclient1.test
    127.0.0.1 myclient2.test
    

    Then use an .htaccess file with mod_rewrite conditions and rules to match the host header (for each different website) and internally rewrite the request to the proper sub-folder/sub-url.

    RewriteCond %{HTTP_HOST} ^myclient1\.test$ [NC]
    RewriteRule ^/*(.*)$ http://localhost/silo1/myclient1/$1 [NC]
    
    RewriteCond %{HTTP_HOST} ^myclient2\.test$ [NC]
    RewriteRule ^/*(.*)$ http://localhost/silo2/myclient2/$1 [NC]
    

    Or if you want to do a full redirect (instead of an internal redirect)…

    RewriteRule ^/*(.*)$ http://localhost/silo1/myclient1/$1 [R=301,NC]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a suite of internal websites for our company to manage some
We have a few websites which are all on a dedicated server. The sites
I have a virtual server with a few websites on it. To be honest
I have a few Servlets which call remote EJB session to manage user's requests.
I am currently developing a SSO website-network. It has a few websites wich are
I have a few entities which are managed by custom NSManagedObject classes. They are
My knowledge of regex is very weak. So far I have manage to create
Do I programmatically have to manage the backcolor\highlight color on a Listview's item when
i have a couple questions about an idea i have to manage a form
I'm looking at a simple class I have to manage critical sections and locks,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.