In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the method of removing index.html from the home page of weaving dreams. I hope you will gain a lot after reading this article. Let's discuss it together.
Dream home page index.html how to remove?
Many friends will find that index.html will be added when they visit the home page when they use dream weaving to build or imitate the site.
Now I'm going to share this solution, and you can try it and see if it works.
Recommended study: dream weaving cms
There is a self-contained index.php file in the www/ and directory.
Original code
The code is as follows:
/ / automatically generate HTML version of if (isset ($_ GET ['upcache'])) {require_once (dirname (_ _ FILE__)). "/ include/common.inc.php"); require_once DEDEINC. "/ arc.partview.class.php"; $GLOBALS ['_ arclistEnv'] = 'index';$row = $dsql- > GetOne ("Select * From `dede_ homepageset`"); $row [' templet'] = MfTemplet ($row ['templet']); $pv = new PartView (); $pv- > SetTemplet ($cfg_basedir. $cfg_templets_dir. "/". $row ['templet']); $pv- > SaveToHtml (dirname (_ FILE__).' / index.html'); include (dirname (_ FILE__).'/ index.html'); exit ();} else {header ('HTTP/1.1 301 Moved Permanently'); header (' Location:index.html');}? >
Replace the above code with
The code is as follows:
Require_once (dirname (_ _ FILE__). "/ include/common.inc.php"); require_once DEDEINC. "/ arc.partview.class.php"; $GLOBALS ['_ arclistEnv'] = 'index';$row = $dsql- > GetOne ("Select * From `dede_ homepageset`"); $row [' templet'] = MfTemplet ($row ['templet']); $pv = new PartView (); $pv- > SetTemplet ($cfg_basedir. $cfg_templets_dir. "/". $row ['templet']); $pv- > Display ();? >
And then it's okay.
After reading this article, I believe you have a certain understanding of the method of removing index.html from the home page of dream weaving. If you want to know more about it, welcome to follow the industry information channel. Thank you for your reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.