Warner Cloud: Steps to configure Discuz pseudo-static under the Pagoda panel

Configuring Discuz pseudo-static in the Pagoda panel usually involves adding corresponding Nginx or Apache pseudo-static rules in the site configuration. Here are the basic steps to configure Discuz pseudo-static in the Pagoda panel:

Set Nginx pseudo-static rules

1. Log in to the Pagoda panel.

2. Enter the site management page.

3. Find your Discuz site, on the site management page, click on the left navigation bar.

4. Find the "pseudo-static" option in the site settings.

5. Add the following rules in the pseudo-static rules box:

location / {
    if (!-e $request_filename) {
        rewrite ^/(.*)$ /index.php?/$1 last;
    }
}
 

Alternatively, if your version of Discuz requires the use of more specific rules, please consult the official Discuz documentation or community.

6. Save the settings.

7. Reload Nginx.

On the Site Management page, click the tab.

In the settings page, find the "Restart" or "Reload" button and click it to reload the Nginx configuration.

Set up Apache pseudo-static rules

1. Log in to the Pagoda panel.

2. Enter the site management page.

3. Find your Discuz site, on the site management page, click on the left navigation bar.

4. Find the "pseudo-static" option in the site settings.

5. Add the following rules in the pseudo-static rules box:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ /index.php/$1 [QSA,PT,L]
</IfModule>
 

Alternatively, if your version of Discuz requires the use of more specific rules, please consult the official Discuz documentation or community.

6. Save the settings.

7. Reload Apache.

On the Site Management page, click the tab.

In the settings page, find the "Restart" or "Reload" button and click it to reload the Apache configuration.

The above rules are basic pseudo-static configurations, but please note that different versions of Discuz may require different pseudo-static rules. Before modifying pseudo-static rules, it is recommended to back up your site to prevent unexpected situations.

Guess you like

Origin blog.csdn.net/YOKEhn/article/details/134854975