Home  >  Article  >  Web Front-end  >  Several methods of page redirection

Several methods of page redirection

WBOY
WBOYOriginal
2016-10-10 11:41:01814browse

When I was developing a project recently, my colleagues used CMS templates to build the website, but they didn’t want users to access the template files

Regarding this problem, I have thought of several methods. I will share these methods with you below

I hope everyone will continue to work hard and contribute their part to the program

No more nonsense, let’s get straight to work

JS implements page redirection

The first type:

The second type:

The third type:

The fifth type:

Meta tag implementation in html

Just add the following sentence to the head, and it will jump to the target page after staying on the current page for 0.1 seconds

php implementation

header("Location: http://jb51.net/");
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn