. Htaccess problems

Source: Internet
Author: User
. Htaccess problems this post was last edited by u010572351 at 2013-08-1722: 41: 52. I used a framework and url rewriting. my program was placed in htdocs under apache. it can run normally without any problems. my apache and htdocs are in. htaccess problems
At last, this post was edited by u010572351 at 22:41:52. I used a framework and a url Rewrite. my program was stored in htdocs under apache. it can run normally without any problems,
My apache and htdocs are on drive C,

Then I configured a virtual host for apache. create a web directory on disk D, and then the program root directory is also put. htaccess file, but unfortunately it is here. htaccess is invalid,

My feeling is that. htaccess should take effect under the htdocs directory under the apache installation directory. I don't know if this is the case. Is there any way for my d-drive program to make. htaccess take effect?

Simple:
C:/apache/htdocs. htaccess takes effect
D:/web (virtual host). htaccess does not take effect

Thank you!

Share:
------ Solution --------------------
Add configuration files



<Directory D:/web>
AllowOverride All
</Directory>



Restart apache

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.