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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:29:57+00:00 2026-05-20T02:29:57+00:00

imagine the root of a server where multiple aliases such as website.nl; website.de; etc.

  • 0

imagine the root of a server where multiple aliases such as website.nl; website.de; etc. all direct to the root the root \httpdocs\ with this physical hosting:

httpdocs\...
httpdocs\holland\    # webpages in Dutch   (home.php | contact.php | etc)
httpdocs\deutsch\    # webpages in English (home.php | contact.php | etc)
httpdocs\images\     # all multilingual webpages share the same images
httpdocs\js_css\     # all multilingual webpages share the same scripts/layout
httpdocs\.htaccess   # here be a clean root, nothing else than .htaccess

Thus, only the webpages .php differ: the rest they all share the same! Now imagine that you want to configure .htacces via apache script to make “bridge the gap” if you will, between the root and the folder, making it possible to type this in browser and below water fetching the right php webpage, but keeping the shorter url in the browser:

website.nl/home.php
//files fetched should come from the holland folder associated with website.nl

website.de/home.php
//files fetched should come from the deutsch folder associated with website.de

(As opposed to seeing this in the browser: website.nl/holland/home.php | website.de/deutsch/home.php)

What apache script line will do such thing?
Thanks: Much appreciated!

  • 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-20T02:29:58+00:00Added an answer on May 20, 2026 at 2:29 am

    You need to have “mod_rewrite” installed in apache.
    Assuming you do, place a .htaccess file in the root directory of that account
    (probably:)
    ~/public_html/.htaccess

    and then put this in that file

    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} ^website.nl(.*)$ [OR]
    RewriteCond %{HTTP_HOST} ^www.website.nl(.*)$
    RewriteRule ^.*$ "http\:\/\/www\.website\.nl\/holland\/$1" [L,P]
    

    And then repeat the rewrite condition for website.de

    Basically that says, grab the section after the website.nl part, and paste it on the part after holland, but the “L,P” says to make that a silent redirect and keep the user on the same url as they entered with.

    goodluck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Imagine a path /root/child1/child2/child3 Imagine in zookeeper that maybe a part of this exists,
On shared web-hosting my software supports multiple domains (all domains point to the same
lets imagine this application like enclosed image. R stands for Root activity and A
I have a bunch of projects on the same server. This server is hosting
imagine this html on a page <div id=hpl_content_wrap> <p class=foobar>this is one word and
Imagine a very big gwt project of application. This is just a some form
I can't imagine this is hard to do, but I haven't been able to
imagine a (container-) application is creating multiple classloaders to host a couple of other/sub-
I have a classifieds website... As you might imagine, as a webmaster (administrator) I
Given the following XML example we could imagine a schema defining Root as containing

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.