Click here to Skip to main content
16,011,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
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
Posted
Updated 28-Feb-13 1:31am
v3
Comments
sandeep207 28-Feb-13 0:27am    
paper.html"; is your new url

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
 
Share this answer
 
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
 
Share this answer
 
Please just write below code in your existing oldnews.html it will redirect to newnews.html

windows.location.href = "paper.html";
 
Share this answer
 
Comments
pkarthionline 28-Feb-13 7:23am    
oldnews.html was deleted.i have newnews.html have there.

.htaccessfile can use?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900