. Htaccess's related issues

Source: Internet
Author: User
. htaccess's Problem
This post was last edited by u010572351 on 2013-08-17 22:41:52

I use the framework, using URL rewrite, my program is placed in Apache under the htdocs inside. There is no problem that can work,
My Apache and Htdocs are on the C drive,

Then I configured the virtual host for Apache. I set up a web directory on D, and then the program root in it also put the. htaccess file, but unfortunately it's here. Htaccess is dead,

My feeling is. htaccess should be placed in the Apache installation directory under the Htdocs to take effect, do not know if this is the case, then I D-Disk program has no way to resolve to make. htaccess also effective?

Simple point:
C:/apache/htdocs. htaccess entry into force
D:/web (virtual host). Htaccess does not take effect


Thank you!

Share to:


------Solution--------------------
Add a configuration file



< Directory d:/web>
AllowOverride All
</directory>



Restart Apache trial
  • 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.