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.
Enter the root directory and find index.php. File, just replace this one.
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
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
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!