.htaccess 寻找关于清洁网址的答案,我还没有找到迄今为止

.htaccess 寻找关于清洁网址的答案,我还没有找到迄今为止,.htaccess,mod-rewrite,clean-urls,.htaccess,Mod Rewrite,Clean Urls,我正在寻找清理我的网址,我有最困难的时间。我在GoDaddy上有一台Apache服务器。不确定是否托管是问题所在。我上传了很多.htaccess文件,但都没有成功 目标:我试图从我的网站上完全删除.php 例如:http://example.com/about.php 和http://example.com/folder/anotherpage.php 我想让它读出来http://example.com/about 和http://example.com/folder/anotherpage 如

我正在寻找清理我的网址,我有最困难的时间。我在GoDaddy上有一台Apache服务器。不确定是否托管是问题所在。我上传了很多.htaccess文件,但都没有成功

目标:我试图从我的网站上完全删除.php

例如:http://example.com/about.php 和http://example.com/folder/anotherpage.php

我想让它读出来http://example.com/about 和http://example.com/folder/anotherpage

如何为此编写.htaccess文件?我找到的所有答案都更多地涉及参数


我所做的一切似乎都不管用。这是戈达迪的问题吗?请帮忙。提前谢谢。

我想应该是这样的:

RewriteEngine On
RewriteRule about about.php
RewriteRule folder/anotherpage folder/anotherpage.php

谢谢你的快速回复,但这对我来说不起作用。这东西快把我累死了!