Apache how to set domain name access and go directly to subdirectories

Source: Internet
Author: User
How does Apache set up domain name access and go directly to subdirectories?

For example, my website is: http://jiaoshi.xinxuenet.com/when the person who is visiting enters this URL from the browser address bar,

I hope he directly open http://jiaoshi.xinxuenet.com/bbs/directly into this directory, how should be set???

Add jump codes without redirects and files


Reply to discussion (solution)

Httpd-vhosts.conf in the configuration can meet the landlord needs?

Httpd-vhosts.conf in the configuration can meet the landlord needs?



You mean to configure multiple virtual ports and point directly to the BBS directory?

Is your server Linux or Windows? Configure the virtual host to point to the/bbs directory.

Is your server Linux or Windows? Configure the virtual host to point to the/bbs directory.



I know, with the. htaccess file.
Write directly
Rewriteengine on
Rewriterule ^index.php$ hotel_search/index.php
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.