Discuz forum open pseudo-static most detailed tutorial!

      We all know that discuz is the use of PHP language development, dynamic address is not conducive to spider, open the pseudo-static favor of SEO optimization. Many online tutorials using .htaccess but it is not enough, you need to configure .conf file.

      Please see the steps:

      1. Log on to our website background, global> SEO optimization settings> check the page to be set on the thematic portal, portal articles, forums, lists, forums page content, such as user log. Click Submit

      2. Following the submission click to see the current Rewrite Rules!

    3. Select the corresponding server type you; if you Apache Web Server (host independent user), you copy the Apache Web Server, Ali cloud ECS is an independent IP host server, it copies the contents of the user's host independent.

       4. Open notepad ++ new text, the <IfModule mod_rewrite.c> to </ IfModule> a complete closed paste content to which the new text, and save it as .htaccess.

     5. Open flashFXP link to your server remotely manage, upload .htaccess file to the root directory of your website. Restart the server, open the page to see if you can access the address, and the address format is www.abc.com/article-1-1.html, and it was opened. Most online tutorials to this step is not, and if not, please read on!

      6. Many of my friends have installed multiple sites, the Apache environment, you need to configure the vhosts.conf file. FlashFXP will find under the server directory /alidata/server/httpd-2.4.2/conf/vhosts/, vhost.conf will be downloaded to the local.

     7. Use notepad ++ open, the corresponding site youweb.conf file, the <IfModule mod_rewrite.c> Copy to </ IfModule> to youweb.conf file inside the </ Directory> Under this label, pay attention to the labels need a website, do not posted in the wrong place. The .conf file upload the edited back overwrite the original file.

    8. Open putty.exe enter your ip address, click open, login. Enter your virtual machine administrator user name root, administrator password: xxxx. Press Enter Login

     9. In the command window, type: service httpd restart to restart the httpd server software, you can!

     10. Open your site, visit the page to see if the address is not www.abc.com/article-20610-1.html of it. Success of it !!

 

Guess you like

Origin www.cnblogs.com/ii123ii/p/12571794.html