Is it possible to hide a .php extension or replace

2020-04-21 03:06发布

I have tried to find the answer, but I failed. Other questions are with htaccess.

I found this question similar of my question, but I did not get my answer.

I need it without .htaccess, because I do not have permission of URL rewriting in my client's server.

How can I achieve this?

标签: php .htaccess
1条回答
贼婆χ
2楼-- · 2020-04-21 03:27

If you don't have access to your .htaccess or httpd.conf file the you could set up a proxy (like nginx) in front of the web server, point the DNS record to this proxy and have the proxy rewrite the requests from .html to .php to pass on to your apache server.

However, if you don't have access to .htaccess or httpd.conf files, you probably don't control the DNS records...

查看更多
登录 后发表回答