将页面命名为abc.htm,而实际页面为word.php?w = abc [英] Name a page as abc.htm while actual page is word.php?w=abc

查看:79
本文介绍了将页面命名为abc.htm,而实际页面为word.php?w = abc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过很多网站,包括theScripts,该页面实际上是 .php ,带有一些get参数,但页面可以在 .htm 页面找到得到参数。


如何做到这一点?


例如。如果你想看一个单词说 girl ,那么显示这个单词的PHP页面是 word.php?w = girl

我想在 girl.htm访问同一页面


Wikipedia做类似的事情。

解决方案

这样做的唯一原因是使添加新页面变得容易多了。拿出以下内容并调用word.php [php]

<?php


newpage =


< blockquote> _GET [''w'']。''htm'';

if(file_exists(


I have seen this many sites including theScripts, that page is actually .php with some get parameter, but the page can be found at an .htm page with no get parameter.

How can that be done?

eg. If you want to see a word say girl, and the PHP page showing this word is word.php?w=girl.
I want to access the same page at girl.htm

Wikipedia does something similar.

解决方案

The only reason to do this is to make it a lot easier to add new pages. Take the following and call that word.php[php]
<?php


newpage=


_GET[''w''].''htm'';
if (file_exists(


这篇关于将页面命名为abc.htm,而实际页面为word.php?w = abc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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