Redirects from htaccess shown in cPanel?
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.
-
cPanel reads the redirects from .htaccess and shows them in the panel. Similarly, when you create the redirects in cPanel, cPanel just writes them to .htaccess. This is normal behaviour. 0 -
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 0 -
Hey there! Yes, cPanel will read the .htaccess file and add anything to that page, so what you're seeing is normal. 0 -
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? 0 -
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 cPanel0
Please sign in to leave a comment.
Comments
5 comments