PHP website development in apache-mac, file case sensitivity issues

Source: Internet
Author: User
Tags php website
Mac is case-insensitive. Is there a way to make the website address case-sensitive? The apache server Mac is case-insensitive. Is there a way to make the website address case-sensitive?
The apache server is used.

Reply content:

Mac is case-insensitive. Is there a way to make the website address case-sensitive?
The apache server is used.

[Note: The answer in this section is for static pages.] I can't remember this. Because file names are used to query files, this depends on the implementation of the operating system. In linux, you can useMod_spelingThe module does not distinguish between multiple queries. However, there is no distinction between windows and mac, so I'm afraid there is no good way.

It seems that the only way is to use appropriate rulesRewriteTo a fixed script, this script undertakes the URL routing task, and is difficult to query if the file exists, the full path of the file is in the same case as the URL. Yes. If not, 404 is returned.

There are only principles and no detailed rules. Maybe it can also be implemented in other ways (for example, adding a server software for reverse proxy), but the idea of this round should be like this.

Format a new hard disk partition, select the Mac log format (case sensitive) when creating the partition, and then drop the partition in the project file.

The size or lower case is the same.

Related Article

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.