2013-06-27 18 views
1

我正在尋找清理我的網址,我有最困難的時間。我在GoDaddy上有一個Apache服務器。不知道是否託管是問題。我上傳了很多.htaccess文件,但都沒有工作。尋找有關乾淨的URL的答案,我還沒有找到到目前爲止

目標:我試圖從我的網站完全消除「.php」。

例子:http://example.com/about.phphttp://example.com/folder/anotherpage.php

我想它讀取http://example.com/abouthttp://example.com/folder/anotherpage

我怎樣寫一個.htaccess文件呢?我發現的所有答案都與參數有關。

並且我所做的一切似乎都沒有問題。這是GoDaddy問題嗎?請幫忙。提前致謝。

回答

0

我覺得應該是如下:

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

感謝您的快速反應,但這並沒有爲我工作。這件事正在殺死我! – Ken

相關問題