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 6876841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:31:41+00:00 2026-05-27T04:31:41+00:00

The only thing in http://localhost/.htaccess is this: Options +FollowSymLinks Alias /1 /2 …and I

  • 0

The only thing in http://localhost/.htaccess is this:

Options +FollowSymLinks
Alias /1 /2

…and I get an HTTP 500 error. Tried it with one, both, either or directories existing (e.g. localhost/1/). Not seeing anything for tutorials. Can I get this to work without modifying the server’s httpd.conf configuration file?

Goal: use a single (same) directory for two or more sites that are structured the same with different content.

Condition: This MUST be mirrored on a live server which means I do NOT have access to the server configuration.

If SymLinks can NOT be used in any way via .htaccess without modifying the server configuration then this approach is not one I can take.

  • 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-27T04:31:41+00:00Added an answer on May 27, 2026 at 4:31 am

    According to the documentation, you cannot use Alias in a .htaccess file.

    For the Alias directive, it lists the Context as server config, virtual host. If you were able to use it in a .htaccess file then .htaccess would appear in the Context for the directive in the documentation.

    Some options to solve the problem:

    • Make /1 a symlink to the /2 directory. (Is /1 already symlink to /2? If so, just get rid of the Alias statement. You don’t need it in that case.)
    • Move the Alias directive to the server config.
    • Use mod_rewrite rules in your .htaccess file. This will only work if your /2 directory is under docroot.
    • Use a Redirect directive. This also requires tht your /2 directory is under your docroot. It’s different from Alias, but it might be close enough for you depending on what it is you’re trying to achieve.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I call my site this way locally: http://localhost:80/mysite/de/layer1/layer2/module In .htaccess I have: RewriteEngine on
Been searching but the only thing I found was http://evain.net/blog/articles/2009/07/30/rebasing-system-reactive-to-the-net-clr which I got to
the only thing i know about this subject is... in PHP 5, when a
I have to ask this, because: The only thing I recognize is, that if
I got this comma separated file with a bunch of numbers The only thing
So, this example comes right from MSDN. http://msdn.microsoft.com/en-us/library/system.xml.xmlreader.readelementcontentasbase64.aspx Pretty much the only thing I
The only thing I've found has been; .hang { text-indent: -3em; margin-left: 3em; }
The only thing I don't have an automated tool for when working with SQL
Essentially the only thing I can deploy to my deployment machine is a JAR
When I see Lua, the only thing I ever read is great for embedding,

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.