A redirect defined in .htaccess can be removed through cPanel’s File Manager. This is useful when replacing an old destination or resolving conflicting rules, provided that the redirect is actually controlled by that file.
Locate and back up the file
- In cPanel, open Domains and check the intended site’s document root.
- Open Files > File Manager and navigate to that directory.
- Under Settings, enable Show Hidden Files (dotfiles) and save.
- Download or copy
.htaccessas a recovery copy, then open the original for editing.
The document root is not always public_html.
Disable the intended redirect
Identify the complete redirect block. For example, prefix each line of an HTTP-to-HTTPS redirect with #:
# RewriteCond %{HTTPS} !=on
# RewriteRule ^ https://example.com%{REQUEST_URI} [R=301,L]Disable the associated conditions as well as the rule. Leaving conditions active can unintentionally attach them to the next rule. Do not comment out unrelated application rules or the shared RewriteEngine On directive.
If cPanel’s Redirects interface created the redirect, remove it there where possible.
Verify the change
Save and test the intended pages. Restore the recovery copy if the edit causes errors. Permanent redirects may be cached, so use a fresh browser session or inspect the server response.
If redirection continues, check the application, proxy, other .htaccess files and any Force HTTPS Redirect setting. Removing a rule does not remove HSTS or make plain HTTP suitable for sensitive information.