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

  • SEARCH
  • Home
  • 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 6363805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:04:59+00:00 2026-05-25T00:04:59+00:00

This should be simple, but I can’t get it to work. I have a

  • 0

This should be simple, but I can’t get it to work.

I have a site with a path in it, like this: www.mysite.com/coolstuff. When a user types www.coolstuff.com I want Apache to go to www.mysite.com/coolstuff.

A possible complication is that coolstuff is not in the docroot, but I’m using an alias to point to its directory. So coolstuff is not really a subdirectory within the mysite.com docroot. I’m hoping that has nothing to do with my problem.

  • 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-05-25T00:05:00+00:00Added an answer on May 25, 2026 at 12:05 am

    It is simple, you just need to set up a separate virtual host for http://www.coolstuff.com. If you use name-based virtual hosting (the most common configuration, in which you have a NameVirtualHost *:80 directive somewhere in the config file), you can do this:

    <VirtualHost *:80>
        ServerName www.coolstuff.com
        ServerAlias coolstuff.com
        RedirectPermanent / http://www.mysite.com/coolstuff/
    </VirtualHost>
    

    This would redirect the browser to www.mysite.com/coolstuff, i.e. the user would know they’re getting sent to a different URL. If you’d rather not have that, it would probably be easier to just make the coolstuff directory a document root of its own:

    <VirtualHost *:80>
        ServerName www.coolstuff.com
        ServerAlias coolstuff.com
        DocumentRoot /path/to/coolstuff
    </VirtualHost>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be a simple question, but I can't get it to work :(
This should be really simple but I can't get it to work, how do
This seems like something simple but I can't seem to get it to work.
This seems like it should be simple but I can't work out how to
I know this should be simple but I can't make it work. I have
This seems like it should be simple but I can't work it out from
This should be simple, but i can't get it to work. I want to
This should be simple, but I can't get it to work when the 'trigger'
I feel like this should be simple but i can't work out how to
this should be so simple but I can't get it to work, all I

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.