How to enable shopncb2b2c pseudo-static _ php instance

Source: Internet
Author: User
Recently, I want to enable pseudo-static for a shopnc website, using shopncb2b2c. I searched a lot of shopnc methods on the Internet to enable pseudo-static, but they are all for shaopncc2c and there is no shopncb2b2c solution, finally, I found out how to enable pseudo-static in shopncb2b2c. Shopnc b2b2c Method for enabling pseudo-static

1. In windows

1. Download the isapi rewriteplug-in and install it. Then, modify the htaccess.txt file in the root directory to. htaccess.

2. Find the website directory \ data \ config and find config. ini. php to enable pseudo-static.

Open config. ini. php (remember to use text or DW). Do not use NotePad to open it; otherwise, an error will occur.

Find $ config ['url _ model'] = false; change false to true. The pseudo-static mode is enabled !!

Ii. apache server

1. Enable the rewrite.modulefunction of the apacheserver, rename the 'htaccess.txt 'file in the Shangcheng directory to'. htaccess', and select 'Yes' to save.

2. Find the website directory \ data \ config and find config. ini. php to enable pseudo-static.

Open config. ini. php (remember to use text or DW). Do not use NotePad to open it; otherwise, an error will occur.

Find $ config ['url _ model'] = false; change false to true. The pseudo-static mode is enabled !!

Shopnc C2C Method for enabling pseudo-static

1. In windows

1. download and install the isapi rewrite plug-in. The pseudo-static plug-in is available in IIS.

2. Go to shopncC2C background settings and enable pseudo static in SEO on the left !!

Ii. apache server

After installing the program, you can go to the website background to enable the pseudo-static state. At this time, you will find a line of prompts at the button to enable the pseudo-static state. Before using the API, ensure that you have enabled the apacheserver's rewrite.modulefunction, rename the 'htaccess.txt 'file in the mall directory to'. htaccess', select 'yes', and save it ."

To copy the code in htaccess.txt, create a new. htaccess file and copy it to the code. If this happens, you will find many errors on your website.

After renaming, you can access the website again. If there is still an error, you can check where your file is stored, because there is still a piece of text in the code "# Modify/shopnc in the following statement as your mall directory address. If the program is placed in the root directory, change/shopnc to/RewriteBase/shopnc ", if it is not in the root directory, you can change "/RewriteBase/shopnc" in the code to "/RewriteBase/" to save it and enable it normally.

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.