After Uploading site to server pages receiving internal server error, but wp admin working fine

I uploaded a blog theme I’m making and testing to a temp domain to test, as everything was working fine on localhost. But I now get an internal server error when ever trying to view posts or pages on my site. The homepage loads up fine and the wordpress admin all works fine as well, it’s just these pages and links on the site that now return an internal server error.

I have made sure to do the usual stuff like update the url database and all of that stuff, I move site back and fourth from local to live all the site and have never had this issue. Any idea what could be going wrong?

URL is : http://101share.co.uk/

Check the folder and file permissions.

Unless that is a theme specific problem, I doubt that could be causing it. I upload plenty of wordpress sites on that same hosting without issue.

In my experience, the two most likely causes for this are permissions issues or a problem with .htaccess. Your server logs may be able to shed more light on the matter.

Have you tried disabling pretty permalinks?

I just looked at your url after your edit. The home link is for 10share.co.uk instead of 101share.co.uk so you may want to double check your database settings.

Thanks for the reply. That was just a custom url typo, which I’ve corrected now. Disabling pretty permalinks seemed to work Thanks. Do you know how I can get pretty permalinks to work?

If you transferred the .htaccess from your localhost I would delete it and set the permalinks again via the dashboard. The same applies if you didn’t transfer the .htaccess.

If that doesn’t work then it’s possibly a host specific issue but it’ll be worth following any generic WordPress advice too.

…I was having exactly the same problem with pretty permalinks. What I did was modify this line on the WordPress generated code in the .htaccess:

RewriteRule . /index.php [L]

to this:

RewriteRule . /current/web/index.php [L]

and then set the permissions to the .htaccess file to 444 so WordPress cannot override it later. Hope this helps.