简体   繁体   English

如何隐藏网址扩展名

[英]How to hide url address extensions

I want to hide url address extensions for my website but I dont know how to do it.I know it can be done with .htacces The host company that I use doesn't have .htacces file because I have a windows server not linux, at least that is what they told me . 我想为我的网站隐藏网址扩展名,但是我不知道该怎么办。我知道可以用.htacces完成。我使用的主机公司没有.htacces文件,因为我有Windows服务器而不是Linux,至少那是他们告诉我的。

How can i hide url extensions without .htacces ? 如何隐藏没有.htacces网址扩展名? I use both .php and .html files in my website. 我在网站上同时使用.php.html文件。

if you are using IIS then you can use extensions like helion Ape. 如果您使用的是IIS,则可以使用helion Ape之类的扩展名。 otherwise try to enable mod_rewrite . 否则尝试启用mod_rewrite most hosts support it. 大多数主机都支持它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM