php 在我的 Xampp 本地主机中哪里可以找到 .htaccess 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21372339/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 04:05:22  来源:igfitidea点击:

Where to find .htaccess file in my Xampp localhost

phpapache.htaccess

提问by user3213861

I have a simple problem here. I'm a beginner in using php and apache. Actually I want to modify some config in my .htaccess but i cant find in. Can anyone tell me where is it located. TIA.

我在这里有一个简单的问题。我是使用 php 和 apache 的初学者。实际上我想修改我的 .htaccess 中的一些配置,但我找不到。谁能告诉我它在哪里。TIA。

回答by Nick Wilde

.htaccesssets directory specific settings and goes in each web directory as needed to change settings.

.htaccess设置目录特定设置并根据需要进入每个 Web 目录以更改设置。

Some server packages will include a blank/basic one in the root www dir.

一些服务器软件包将在根 www 目录中包含一个空白/基本的软件包。

If XAMPP doesn't include one, just create a text file and name it .htaccessand edit it however you need.

如果 XAMPP 不包含一个,只需创建一个文本文件并命名.htaccess并根据需要对其进行编辑。

回答by Sakil Mahmud

.htaccessincludes in your project like if you're working on wordpress and whatever you named the folder, just enter that folder and search it you may find it.

.htaccess包含在您的项目中,就像您正在使用 wordpress 以及您命名该文件夹的任何内容一样,只需输入该文件夹并搜索它,您可能会找到它。

here you may see

在这里你可能会看到

screenshot of directory structure

目录结构截图