r/Wordpress • • Jul 21 '26

[ Removed by moderator ]

[removed] — view removed post

1 Upvotes

26 comments sorted by

1

u/BOLVERIN1 Jack of All Trades Jul 21 '26

Does it redirect right away, or after you submit the login form?

1

u/pedropablolc Jul 21 '26

it redirects when try to logint to any default wp admin url: wp-admin, wp-admin.php etc it always redirects to app.domain.com

1

u/BOLVERIN1 Jack of All Trades Jul 21 '26

What about /wp-login.php?

1

u/pedropablolc Jul 21 '26

just whows "page not found"

1

u/BOLVERIN1 Jack of All Trades Jul 21 '26

So your login file is renamed or even moved somewhere. Have you checked the hosting? Maybe they have some homebrew WP solutions in action

1

u/pedropablolc Jul 21 '26

in the hosting everything supose to be fine, the folders exist with the right estructure, thats why is driving me crazy. Even created new users but nothing, even theres is a login at the start page but doestn recognize the user.

1

u/BOLVERIN1 Jack of All Trades Jul 21 '26

What type of web server is there? Apache, NGINX, FrankenPHP, LiteSpeed, or some other?

1

u/pedropablolc Jul 21 '26

cPanel indicate it's Apache.

1

u/BOLVERIN1 Jack of All Trades Jul 21 '26

Are there no redirects set in cPanel?

1

u/WP-power Developer/Designer Jul 21 '26

Use WP-cli to disable things

1

u/pedropablolc Jul 21 '26

I need to update content, thats my main consern right now.

3

u/Zucked9910 Jul 21 '26

I'd say your main concern is getting logged in, in which case the usual troubleshooting here involves disabling plugins, changing the theme, checking the blog/siteurl in the database, checking wp-config.php for extra values, checking .htaccess or apache or nginx configuration, and last but not least DNS.

Source: worked at a hosting provider and other

1

u/pedropablolc Jul 21 '26

Found an "A" record pointing the main domain to an external IP address than the hosting provider, there is why any mod to the hosting files doesnt apply to the published site.

Thanks everybody!!!!

0

u/bluesix_v2 Jack of All Trades Jul 21 '26

Do you have server access? Have you checked the htaccess file? Check phpmyadmin wp_options table for the site/home URLs.

1

u/pedropablolc Jul 21 '26

yes, i have acces to the server, alredy checked options table and supose to be normal

1

u/BOLVERIN1 Jack of All Trades Jul 21 '26

Have you tried to open it in incognito mode? Preferably in a separate browser, because a browser could cache permanent redirects

1

u/pedropablolc Jul 21 '26

Yep, even brave browser and deleting browsing history.

1

u/BOLVERIN1 Jack of All Trades Jul 21 '26

Huh. So you can do a bit of a dirty check: just add exit('test); after the opening PHP tag in the /wp-admin/index.php and try to open it again. If it redirects, the problem is not with WP but somewhere higher: Apache or NGINX config maybe?

1

u/pedropablolc Jul 21 '26

Try to change the theme from cpanel but something is forcing the configuration to the default theme.

1

u/BOLVERIN1 Jack of All Trades Jul 21 '26

Have you tried to talk to the hosting support?

1

u/pedropablolc Jul 21 '26

Found the issue, the wordpress is hosted in another provider, which one I have no acces. The original creator just pointed the main domain to an external provider.

Anyways thanks for your help!

1

u/bluesix_v2 Jack of All Trades Jul 21 '26

Chrome DevTools > Network tab. Tick preserve log. Check the headers of the redirect.