Home >CMS Tutorial >DEDECMS >How to do dedecms301 redirection

How to do dedecms301 redirection

尚
Original
2019-07-17 11:49:353487browse

How to do dedecms301 redirection

dedecms There are many ways to do 301 redirection, but the one I use the most is to directly replace the index.php file in the root directory of the website, which is simple, convenient and fast. Of course, I believe most webmasters know why a 301 redirect is required, so I won’t go into details here.

Use ftp to log in to the website we want to use for 301 redirection. Double-click the folder web to enter the root directory of the website.

How to do dedecms301 redirection

Enter the root directory and find index.php. File, just replace this one.

How to do dedecms301 redirection

Download the dede301 redirection code from the Internet. There are many on the Internet and you can find it by searching. If not, please copy this paragraph

How to do dedecms301 redirection

You only need to change the name pointed to by the red arrow in the picture below. Just change it to your own. You can

How to do dedecms301 redirection

After the modification is completed, transfer it to the web directory and replace the original index.php.

For more technical articles related to DedeCMS, please visit the DedeCMS Tutorial column to learn!

The above is the detailed content of How to do dedecms301 redirection. For more information, please follow other related articles on the PHP Chinese website!

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