Your are here: Home // Posts Tagged With 网页重定向

Using Proper Header Redirects In PHP

This article is extracted from http://mattiasgeniar.be/2008/07/30/using-proper-header-redirects-in-php/ Let’s say you have an old web-page that’s no longer in use. Of course, you’ll want to redirect your users to the correct (new) page. Using PHP, you can modify the headers of a web-page to redirect them to the correct page. <?php header("Location: http://www.mydomain.com/newpage.html"); exit(); ?> This... 

Share a virtual host with several domains

 1. ASP 空间 - virtual host hosts several domains: index.asp 方法其实很简单,就是利用一个asp文件通过浏览器输入的域名,判定他是要打开那个文件夹里的站点,来实现一个虚拟放置多个站点。 其他说明:如果虚拟主机不支持子目录绑定,这是唯一有效的办法 实现方法如下: 可以这样,你先建立一个默认主页index.asp 然后把A站放在A文件夹下 B站放在B文件夹下 C站放在C文件夹下 index.asp网页文件如下 <%if... 
Copyright © 2009 HAPPY RICKY. All rights reserved.
Designed by Theme Junkie. Powered by WordPress. Hosted by 3WBLOG.NET