(reproduced) Phpcms V9 thematic path more than one slash solution

Source: Internet
Author: User

PHPCMSV9 of the topic, in the settings generated static and static settings of the site to generate in the root directory, the URL of the thematic path will be a more slash, such as: http://www.2cto.com//special/ddos/, I can only say this is phpcms V9 one of the many weird bugs. Several members of the PC forum have been brought up repeatedly, but no official fixes have been seen. It took a lot of time today to finally find the problem and solve it.

Workaround:

1 Modify the phpcms/modules/special/special.php file on line 43rd:

$url = $special [' ishtml ']? App_path.substr (Pc_base::load_config (' System ', ' Html_root '), 1). ' /special/'. $special [' filename ']. ' /‘ :

Put one of the/special/in front/remove, change to special/, can.


2 now in the background of the site to add new topics, you will find that the newly added topic URL will not have another two slash.

3 and the original has been added and generated the topic more slash, by modifying the database to achieve, such as with phpMyAdmin open the V9_special table, find each topic URL field, the more of the slash can be removed.

(reproduced) Phpcms V9 thematic path more than one slash solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.