markus909

Active Member
Feb 18, 2023
44
10
8
Austria
cPanel Access Level
Reseller Owner
Hello,

have you seen that before - and could that actually happen?

I am not 100% sure, but I added a ton of manual redirects into the .htaccess some time ago.
Now I see those redirects in cPanel → Redirects

I can't remember the details, but I am very sure I did not manually add them to cPanel. And there is also no import.

Is cPanel reading out / syncing the redirects of htaccess?
I can imagine it the other way round, i.e. you add a rule to cPanel and it writes into the htaccess, but I have not heard of it going from htaccess to cPanel.
 
Last edited by a moderator:

markus909

Active Member
Feb 18, 2023
44
10
8
Austria
cPanel Access Level
Reseller Owner
Thanks - that's good to know. So it's basically a bidirectional sync. Do you know of any documentation about this? I can imagine only specific redirects can be read. There are endless of ways to write redirection rules within .htaccess I doubt cPanel can all read/translate them. Probably only the "simple" redirects will be read out, e.g. Redirect 301 /oldpage /newpage
 

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
959
76
178
Virginia Beach, VA
cPanel Access Level
DataCenter Provider
Other than the official documentation for redirects from cPanel, its not specifically mentioned. I believe this falls into the "common sense" category considering that in Apache systems, that's one of the only ways to create a redirect other than adding header redirects directly in code.

Honestly, I'm not sure what your end goal is. I'm sure there are some manual redirects that you add in .htaccess that cPanel probably can't read, but I'm sure it just checks for the "Redirect 30X" indicator in .htaccess and parses accordingly.

Additionally, if you add manual redirects to .htaccess that cPanel happens to not be able to read, they will work anyway. I don't know that there is any documentation on what redirects cPanel can parse, because I mean, who cares?
 

markus909

Active Member
Feb 18, 2023
44
10
8
Austria
cPanel Access Level
Reseller Owner
Other than the official documentation for redirects from cPanel, its not specifically mentioned. I believe this falls into the "common sense" category considering that in Apache systems, that's one of the only ways to create a redirect other than adding header redirects directly in code.

Honestly, I'm not sure what your end goal is. I'm sure there are some manual redirects that you add in .htaccess that cPanel probably can't read, but I'm sure it just checks for the "Redirect 30X" indicator in .htaccess and parses accordingly.

Additionally, if you add manual redirects to .htaccess that cPanel happens to not be able to read, they will work anyway. I don't know that there is any documentation on what redirects cPanel can parse, because I mean, who cares?
It's just easier when troubleshooting to understand how a system works. I prefer to understand what's going on under the hood when I enter things into cPanel