Page 1 of 1

WordPress: styling has all gone....

Posted: Fri Jun 26, 2015 9:33 am
by simonmlewis
Hi there.
I have dragged the contents of a blog folder in a subdomain to the blog folder in the live domain.

The data is working, as it's showing content, but wp-admin doesn't work, and no styling is working. It's like CSS is removed.

But it is there, I can see it in the FTP folder.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /blog/wp-content/themes/lovecraft/style.css was not found on this server.</p>
<hr>
<address>Apache Server at beta.domainname.co.uk Port 80</address>
</body></html>

I don't know why it's still looking for beta. Any ideas?

Re: WordPress: styling has all gone....

Posted: Fri Jun 26, 2015 9:35 am
by simonmlewis
Could it be because we had an old Blog in that blog folder. I deleted it and now it's confused it - is there some method to change that beta, so it points to the right place? I'm sure it's something in the core of it that's not sure. Rather than be binning it and starting over, be good to be able to fix it.

Re: WordPress: styling has all gone....

Posted: Fri Jun 26, 2015 9:42 am
by Celauran
WP stores full URLs in the database. Check WP_HOME and WP_SITEURL values in your wp-config.php. If they're not there, add them.

Re: WordPress: styling has all gone....

Posted: Fri Jun 26, 2015 9:44 am
by simonmlewis
No they are not in wp-config.php.

How do I code that in there please?

Re: WordPress: styling has all gone....

Posted: Fri Jun 26, 2015 9:44 am
by Celauran

Code: Select all

define('WP_HOME', 'http://yoursite.com');
define('WP_SITEURL', 'http://yoursite.com');

Re: WordPress: styling has all gone....

Posted: Fri Jun 26, 2015 9:49 am
by simonmlewis
Got it - but now the images at the top don't show. But they are in there...... Trying to suss out why.

It's the images that are still looking for the BETA portion of the URL.
Is that in the database somewhere, or elsewhere?

Re: WordPress: styling has all gone....

Posted: Fri Jun 26, 2015 9:53 am
by simonmlewis
It's ok, I've sorted it. The main image had a beta in the URL.
The other few ones were correctly URLd but still didn't work. Jsut removed and started those again.

thanks for your guidance.