Home >CMS Tutorial >DEDECMS >What should I do if the homepage generated by DreamWeaver dedecms5.7 prompts a 404 error?
What should I do if dedecms5.7 generates a homepage prompt of 404 error?
When dedecms background generated the homepage html file today, it prompted a 404.html error. Directly accessing the website homepage will automatically jump to 404.html, and at the same time, it prompted an error that the file does not exist. It turned out to be dedecms. Question
A major bug was discovered when using the dedecms5.7 website building system.
Problem situation:
When generating the homepage html file in the background, a 404.html error is prompted. Direct access to the website homepage will automatically jump to 404.html, and an error that the file does not exist is prompted. .
Solution:
Modified file path:/www/dede/include/taglib/flinktype.lib.php
Find this piece of code:
$dedecms = false; $dedecms->id = 999; $dedecms->typename = '织梦链'; if($type == 'dedecms') $row[] = $dedecms;
Change the red part to any character.
For example: if($type == 'jb51net') $row[] = $dedecms;
The whole is as follows:
The code is as follows
$dedecms = false; $dedecms->id = 999; $dedecms->typename = '织梦链'; if($type == 'jb51net') $row[] = $dedecms;
The problem can be solved by saving it. Later, someone posted a chat record on the official forum. It is said that the problem occurred because DreamWeaver officially added the so-called "DreamWeaver Chain" advertising code to the newly released program.
The above is the detailed content of What should I do if the homepage generated by DreamWeaver dedecms5.7 prompts a 404 error?. For more information, please follow other related articles on the PHP Chinese website!