如何避免在URL中显示文件名 [英] How to avoid display of filename in URL
问题描述
我最初登录我的网站时默认加载index.php。我们
看不到页面名称index.php显示在URL中。
但是当我点击此页面上的某个链接时,它会显示整个
路径,地址栏和URL上有文件名。我需要它不应该在地址栏和URL上显示我的php文件名,我应该如何实现它?
问候,RAZZ。
回复你在2008年2月22日星期五07:59:18发来的消息,
< blockquote class =post_quotes>
当我最初登录我的网站时,它默认加载index.php。我们
看不到页面名称index.php显示在URL中。
但是当我点击此页面上的某个链接时,它将在地址栏上显示整个
路径及文件名和URL。我需要它不应该在地址栏和URL上显示我的php文件名,我应该如何实现呢?
不要写包含文件名的链接。但是你的PHP问题是什么?
-
真诚的你,AnrDaemon< an ******* @ freemail.ru>
" AnrDaemon" < a ******* @ freemail.ruwrote in message
news:21 ********************** @ freemail.ru ...
Greetings,RAZZ。
回复你的消息,日期为2008年2月22日星期五,07:59 :18,
>当我最初登录我的网站时,它默认加载index.php。我们无法看到URL中显示的页面名称index.php。
>但是当我点击此页面上的某个链接时,它将在地址栏和URL上显示整个
路径以及文件名。我需要它不应该在地址栏和URL上显示我的php文件名,我应该如何实现呢?
不要写包含文件名的链接。但是你的PHP问题是什么?
就此而言,Javascript问题是什么?
-
理查德。
LOL。这实际上是一个Apache问题。
Hi,
When I login to my site initially it load index.php by default. We
can''t see the page name index.php displayed in URL.
But when I click to some link on this page it will display the whole
path with file name on address bar and URL. I need that it should not
display my php files names on address bar and URL, how should I
achieve it?
Greetings, RAZZ.
In reply to Your message dated Friday, February 22, 2008, 07:59:18,
When I login to my site initially it load index.php by default. We
can''t see the page name index.php displayed in URL.
But when I click to some link on this page it will display the whole
path with file name on address bar and URL. I need that it should not
display my php files names on address bar and URL, how should I
achieve it?Don''t write links containing file names. But what is Your PHP question?
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>
"AnrDaemon" <an*******@freemail.ruwrote in message
news:21**********************@freemail.ru...Greetings, RAZZ.
In reply to Your message dated Friday, February 22, 2008, 07:59:18,
>When I login to my site initially it load index.php by default. We
can''t see the page name index.php displayed in URL.
>But when I click to some link on this page it will display the whole
path with file name on address bar and URL. I need that it should not
display my php files names on address bar and URL, how should I
achieve it?
Don''t write links containing file names. But what is Your PHP question?For that matter what is the Javascript question?
--
Richard.
LOL. This is really an Apache question.
这篇关于如何避免在URL中显示文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!