Operating System & Version
linux
cPanel & WHM Version
114.0 (build 10)

TommyAbner

Registered
Nov 20, 2023
4
0
1
KY
cPanel Access Level
Reseller Owner
Hopefully someone can set my direction of thinking to the right direction.

In Cpanel, Redirects,,,

I need a simple redirect...

www.mysite.tld or,,,, http://www.mysite.tld to simply be forced to use a non www url. so,,, http://mysite.tld....

however, the interface wont allow that,, says its a loop.

i have implimented a dirty fix for it,,, by setting a redirect,,, and going into the .htaccess file and editing it by hand... and it works, but i cant help to feel like that was not the intention of the Redirects interface..

Thanks
Tommy
 
Last edited by a moderator:

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
599
273
138
IN
cPanel Access Level
Root Administrator
If you're experiencing a loop issue when trying to set up a redirect in cPanel's Redirects interface, it's likely because the system is detecting a circular redirection path.

Are you using WordPress?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
The Redirects interface is just a fancy screen that links to the .htaccess file, so there's nothing wrong with editing that file by hand if that is your preference. However, we'd still expect our screen to work, although it certainly doesn't have every option that is available with editing the file by hand.
 

TommyAbner

Registered
Nov 20, 2023
4
0
1
KY
cPanel Access Level
Reseller Owner
My preference would be to use the Cpanel interface in the manner in which Cpanel seems to say they are,,, is it not supposed to make things simple and be the control point for the domain server. Even just the simple no www redirect is not possible. I had to create a https redirect, then go in and edit it from the htaccess file to get my domain to work. The Cpanel interface seems to have some odd quirks if u do this,, then those dont count type things.

Regards
Tommy
 

TommyAbner

Registered
Nov 20, 2023
4
0
1
KY
cPanel Access Level
Reseller Owner
No. And maybe i didnt make my statement very clear. I cant have any www. In my urls or it breaks. So how do i do redirect to just plain simple http://mysite.tld?
Then maybe i am doing something wrong,

Type = Permanent (301)
https?://(www.)? = mysite.tld
= / left blank
Redirects to = http://mysite.tld
www.redirection options = Only redirect with www. ( is selected )
Wild Card Redirect Box checked = ( I have tried both ways )

Click Add.

?

so, is that something that should work in the current cpanel?

that is the most simple redirect I could think that would be done,
works when I had edit in .htaccess file.

Thanks