如何删除/隐藏文件扩展名。 [英] How to remove / hide file extension.

查看:107
本文介绍了如何删除/隐藏文件扩展名。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除/隐藏扩展名.php frpm我的网页浏览器网址?请尽快提出解决方案。

解决方案

使用 URL重写可以解决这些问题:http://en.wikipedia.org/wiki/Rewrite_engine [ ^ ]。



进一步的步骤取决于您的HTTP服务器和托管环境。如果这是Apache,您可以使用:

http:// httpd。 apache.org/docs/2.0/misc/rewriteguide.html [ ^ ]。



-SA


赶快给你可以看看这些:

删除带有strstr的URL部分和文件扩展名 [ ^ ]

如何从网址中删除文件扩展名 [ ^ ]


你可以使用



.htaccess http://stackoverflow.com/questions/8961282/redirect-php-to-extensionless-url-only-for-non-dynamic-urls [ ^ ]



这里有关于这个的好文章



http://www.roscripts.com/Pretty_URLs_-_a_guide_to_URL_rewriting-168.html [ ^ ]





问候.. :)

How to remove / hide extension .php frpm my web browser url ? please suggest solution as soon as possible.

解决方案

Such problems can be solved using URL rewriting: http://en.wikipedia.org/wiki/Rewrite_engine[^].

Further steps depends on your HTTP server and hosting environment. If this is Apache, you can use this:
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html[^].

—SA


Quickly you can have a look at these:
Remove URL part and file extension with strstr[^]
How to remove file extensions from URLs [^]


Well you can use

.htaccess http://stackoverflow.com/questions/8961282/redirect-php-to-extensionless-url-only-for-non-dynamic-urls[^]

here is good article about this one

http://www.roscripts.com/Pretty_URLs_-_a_guide_to_URL_rewriting-168.html[^]


regards...:)


这篇关于如何删除/隐藏文件扩展名。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆