Not sure why this site is redirecting?

I’ve been working with wordpress for about 5 years now, though am not very familiar with php. Yesterday autoperformanceatl.com started redirecting to the blank page new.autoperformanceatl.com, and I’m not sure why. I’ve checked the error log but it doesn’t show any recent errors.

Is there a way to redirect in the wordpress control panel? I was thinking someone may have logged in and redirected it accidentally. I cant log in to wordpress now though to check, the login url won’t load.

Any feedback is greatly appreciated.

I would check in cpanel first as the “new” part is a subdomain. Somebody must have setup that subdomain in cpanel and redirected it there?

I do not know if you are changing things at the moment but I can not connect to either domain name.

I should have mentioned that there is no subdomain in the cpanel. I haven’t been able to connect to either domain because the original .com redirects to the “new” subdomain/folder which doesnt exist. Thank you for the reply!

If I do a site:autoperformanceatl.com search in Google, I can access the resulting links to pages other than the home page, although some of these are giving a 404 error. e.g. http://autoperformanceatl.com/inventory/ and http://autoperformanceatl.com/faq/.

The layout is broken, as it’s referencing stylesheets at new.autoperformanceatl.com.

<link rel='stylesheet' id='font-awesomemin-css'  href='http://new.autoperformanceatl.com/wp-content/plugins/automotive/css/font-awesome.min.css?ver=12.7' type='text/css' media='all' />
<link rel='stylesheet' id='jquery-css'  href='http://new.autoperformanceatl.com/wp-content/plugins/automotive/css/jquery-ui.css?ver=12.7' type='text/css' media='all' />
<link rel='stylesheet' id='bootstrap-css'  href='http://new.autoperformanceatl.com/wp-content/plugins/automotive/css/bootstrap.min.css?ver=12.7' type='text/css' media='all' />

Other links on the pages are also using new.autoperformanceatl.com.

That seems to confirm your suspicion that somebody has changed the path for the WordPress root directory. If you can log in via cPanel, you should (I think) be able to find the file which saves this setting and change it back. I don’t use WordPress, so hopefully somebody else can tell you where to look.

Also check your .htaccess file and remove any redirect from there.

I’m always amazed at the quick and insightful replies here. Thank you. I spoke with the host, godaddy, when they migrated the site to a new server a few months ago the put some"new" code in the wp-config file. Once I removed the code the site started mostly working properly (thanks for pointing out the style sheet mis linking). This kind of thing happens way too often with godaddy but I greatly appreciate your alls help.

1 Like

When I first launched my site I used name.com. I saw issues like that all the time with them. And the support was useless as “it was beyond the scope” for them.

Exactly. It was “beyond the scope” of the first support rep (who said the migration had nothing to do with the issue), and the second support rep figured it out immediately. Calling support is definitely a game of chance with them.

i think you should try https://wordpress.org/plugins/redirection/ plugin this might be very helpful for you to solve your problem as we are using in at our site.

Given the OP’s problem was that his site was redirecting to (a non-existent subdomain) when he didn’t want it to I’m not sure how this would help.

2 Likes

Once we got most of the redirecting issues fixed, there were still a few old links that were misdirecting. The “Better Search and Replace” plugin fixed that. Thanks again for everyone’s help.

2 Likes

Is there a way to delete this post, now that it’s been solved?

We don’t normally delete topics @elwoodhauptmann. Part of the usefulness of the forums is the archives, should someone else have a similar problem in future.

2 Likes

I understand, thanks again everyone.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.