In Progress CPANEL-42708 - Htaccess redirection appears on List Domains weirdly

KJ

Active Member
Feb 15, 2006
32
2
158
Hello,

I noticed something weird which bothered me. I'd like your assistance to verify that i don't understand anything wrong.

We make redirections through the .htaccess file on public_html. Nothing new, have been using it for many years.

Had to create a new subdomain on cPanel -> Domains -> Domains.

On .htaccess we have a redirection for example.com/somefolder to subdomain1.example.com which is made with

<IfModule mod_rewrite.c>
RewriteEngine On
RedirectMatch 301 /somefolder/ subdomain1.example.com
</IfModule>


On cPanel -> Domains -> Domains it shows the following

DomainDocument RootRedirects ToForce HTTPS Redirect
example.com (main domain)/public_html Off

However, our main domain certainly does not redirect to /somefolder/ which is rather confusing.

I also tried the simple Redirect and it also gives me the same result on List Domains.

What i'm getting wrong here?

Kindest regards
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,558
2,610
363
cPanel Access Level
Root Administrator
Hey there! When I add that code manually to my .htaccess file, I see the following in the cPanel >> Redirects interface:

However, I agree the Domains interface doesn't present this in the best possible way.

I've created case CPANEL-42708 with our developers so they can look into this behavior, and I'll be sure to post updates here as I get them.
 
  • Like
Reactions: KJ