Reputation: 3
I've uploaded a clients wordpress site to a test domain: 101share.co.uk . I had everything working on localhost and changed the urls and stuff before uploading, from http:// localhost/wincheapguesthouse/ to http://101share.co.uk .
After uploading and importing the database the result I get seems to be that many files are not being found, but they are there. In the source code if I look for , it can't find it. But if I look for or "http://101share.co.uk/wp-content/themes/retlehs-roots-16aad54/assets/css/app.css" Then I'm able to find it.
Have I got something wrong with the data base or is there a url I need to change, I can't change each link because I don't know exactly how much it is effecting.
I stressing out a little over this because it's a clients site and I need to get things working for them to see. So any help would be very much appreciated.
Upvotes: 0
Views: 99
Reputation: 3
I found the problem. It's that the roots theme tries to rewrite your urls in a way that Apache doesn't agree with.
If you comment out these lines under "config.php" it will work.
add_theme_support('root-relative-urls'); // Enable relative URLs
add_theme_support('rewrites'); // Enable URL rewrites
Upvotes: 0
Reputation: 13
Unless I'm missing something, on your page your CSS etc seems to start "/plugins..." for instance although should be "/wp-content/plugins..."?
Although, the ones starting "/assets" don't seem to exist no matter what I try.
I suggest looking over your folder structure and adjusting your links accordingly in (most likely) the header.php for that theme.
Upvotes: 1