![](/img/trans.png)
[英]How to hide PHP extension redirecting to same URL without the extension in HTACCESS
[英]Is it possible to hide a .php extension or replace .php with .html in a URL without htaccess?
如果您無權訪問您的.htaccess
或httpd.conf
文件,您可以在 Web 服務器前設置一個代理(如 nginx),將 DNS 記錄指向此代理並讓代理重寫來自.htaccess
的請求。 html 到 .php 以傳遞到您的 apache 服務器。
但是,如果您無權訪問 .htaccess 或 httpd.conf 文件,則您可能無法控制 DNS 記錄...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.