将旧页面重定向到新页面html [英] redirect old page to new page html
问题描述
旧网站是这样的:
http:// www.example.com/oldnews.html
oldnews.html页面改为现在newnews.html
这样的新网站:
http://www.example.com/newnews。 html
输入任何一个www.example.com/oldnews.html
自动将页面重定向到新页面=> www.example.com/newnews.html
如何页面将旧页面重定向到新页面?
如何使用.htaccessfile? 大>
谢谢,
Karthikeyan,班加罗尔
old website like this:
http://www.example.com/oldnews.html
oldnews.html page changed to now newnews.html
new website like this:
http://www.example.com/newnews.html
when type any one www.example.com/oldnews.html
automatically page redirected to new page => www.example.com/newnews.html
How to page redirect old page to new page?
How to use .htaccessfile ?
Thanks,
Karthikeyan,Bangalore
推荐答案
如果你的文件已经部署到服务器然后检查:
控制面板主页重定向 [ ^ ]
否则,右键单击页面并设置为起始页。
--Amit
If your files are already deployed to the server then check this:
Control Panel Home Page Redirect[^]
Otherwise, right click on the page and "Set As Start Page".
--Amit
查看以下链接。该示例描述了页面在页面加载时如何重定向。
http://www.webcosmoforums.com/web-development-programming-coding/33117-redirect-page-load-javascript.html [<一个href =http://www.webcosmoforums.com/web-development-programming-coding/33117-redirect-page-load-javascript.htmltarget =_ blanktitle =New Window> ^ ]
谢谢
check out the below link. The example describes how the page redirects on load of page.
http://www.webcosmoforums.com/web-development-programming-coding/33117-redirect-page-load-javascript.html[^]
Thanks
请在现有的oldnews.html中写下以下代码,它将重定向到newnews.html
windows.location.href =paper.html;
Please just write below code in your existing oldnews.html it will redirect to newnews.html
windows.location.href = "paper.html";
这篇关于将旧页面重定向到新页面html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!