Home >Backend Development >PHP Tutorial >How to enable pseudo-static in shopnc b2b2c? ? , shopncb2b2c_PHP tutorial
shopnc b2b2c method to enable pseudo-static
1. Windows environment
1. First download the isapi rewrite plug-in, install it, and then modify the htaccess.txt in the root directory to .htaccess.
2. Find config.ini.php under the website directory dataconfig to enable pseudo-static.
Open config.ini.php (remember to use text or DW), do not open it with Notepad, otherwise an error will occur
Find $config['url_model'] = false; change false For: true, pseudo-static is turned on! !
2. apache server
1. Enable the rewrite.module function module of the apache server, and rename the ‘htaccess.txt’ file in the mall directory to ‘.htaccess’, and then select ‘Yes’ to save.
2. Find config.ini.php under the website directory dataconfig to enable pseudo-static.
Open config.ini.php (remember to use text or DW), do not open it with Notepad, otherwise an error will occur
Find $config['url_model'] = false; change false For: true, pseudo-static is turned on! !
How to enable pseudo-static in shopnc c2c
1. Windows environment
1. First download the isapi rewrite plug-in and install it. There is a pseudo-static plug-in in IIS
2. Go to the background settings of shopncC2C and turn on the pseudo-static in the SEO on the left side of the backend! !
2. apache server
After installing the program, you can go to the backend of the website to turn on pseudo-static. At this time, you will find a line of prompts next to the button to turn on pseudo-static. "Before enabling, please make sure you have enabled the rewrite.module function module of the apache server, and rename the 'htaccess.txt' file in the mall directory to '.htaccess', then select 'Yes' and save."
Note, you must follow this operation. Do not upload the code you wrote and name it .htaccess. Do not copy the code in htaccess.txt. Create a new .htaccess file and copy the code. Because if you do this you will find that your website will have a lot of errors.
After renaming, you visit the website again. If there are still errors, you can check where your file is placed, because there is a text in the code "# Modify /shopnc in the following statement is your mall directory address. If the program is placed in the root directory, please change /shopnc to /RewriteBase /shopnc". If it is not placed in the root directory, you can change "/RewriteBase /shopnc" in the code to " /RewriteBase/" save it and it can be opened normally.