Arsal • Location • Starter

How to Resolve 503 Service Unavailable Error Using cPanel

Client Problem

The website is showing a 503 Service Unavailable error and cannot be accessed normally.

Cause

In this case, the .htaccess file contains extra or incorrect code below the # END WordPress line, which is causing the website to return a 503 error.

Technical Solution

The issue can be resolved by accessing the .htaccess file through cPanel File Manager, removing the extra code below # END WordPress, saving the changes, and reloading the website.

Steps

1. Log in to cPanel
Log in to your hosting account and open the cPanel control panel.

2. Open File Manager
From the cPanel dashboard, go to the Files section and click File Manager.


3. Open public_html
In File Manager, open the public_html directory. This is commonly where the main website files are stored.


4. Locate and Edit .htaccess
Find the .htaccess file inside public_html. Right-click the file and select Edit to open its contents.


5. Find # END WordPress
In the .htaccess file, locate the line containing # END WordPress. Review the code appearing below this line.

6. Remove the Extra Code
Remove the extra or incorrect code below # END WordPress while keeping the valid WordPress .htaccess rules unchanged.


7. Save the Changes
Click Save Changes after removing the extra code to apply the updated .htaccess configuration.

8. Reload the Website
Open your website in the browser and reload the page. Check whether the 503 Service Unavailable error has been resolved.