How to Set up WordPress Permalink in CyberPanel

There are two methods to set up a working WordPress permalink setting in CyberPanel.

Initial WordPress install will add /index.php/ in the permalink. Changing permalink or removing the /index.php/ from the permalink will return 404 error.

There are two methods you can try to fix this issue.

1. Login to the WordPress dashboard.

2. Go to the Permalinks menu.

3. Set the permalinks as you wish. Feel free to remove the /index.php from the permalink.

4. Click the Save Changes button.

5. Access your website management panel.

First method:

6. Follow Step 1 to the Step 5 above.

7. Click the “Rewrite Rules“.

8. Without editing anything, simply click the “Save Rewrite Rules” button.

Second Method:

6. Follow Step 1 to the Step 5 above.

7. Click the “vHost Conf” menu.

8. Edit the “logLevel ERROR” line, change it to “logLevel 9“.

9. Finally, click the “Save” button.

Third Method:

6. Follow Step 1 to the Step 5 above.

7. Click the “Rewrite Rules“.

8. Add forward slash (/) to solve this problem:

Before edit:

#BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

After edit:

#BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^/index.php$ - [L] # Notice the forward slash in this rule
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

9. Click the “Save Rewrite Rules” button.

Try it. Refresh your browser and the error 404 will be gone away.

Leave a Reply

Your email address will not be published. Required fields are marked *