Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrandon Brigham
3,716 PointsCan't upload media to WordPress site and permalinks don't work
So I have a site that I'm working on @ http://axrtek.com and I have TWO issues:
(1) I am unable to upload media to the site after migrating it to a new host/server. The host is iWeb.
When I try to upload media to the site via WordPress I get the following error:
"The uploaded file could not be moved to wp-content/uploads/2014/11."
(2) My pages disappear when changing the permalinks to anything other than 'Default'.
I found a way to display other pages however by creating a 'Custom Structure' permalink that has index.php in it. It is this:
/index.php/%postname%
I want to get rid of index.php before every page on my site.
Any ideas???
Thanks!
Brandon Brigham
3,716 PointsHey Hugo,
Yes I followed those steps basically. So I figured out the uploading images to the server was a permission issue. I solved it by changing the upload folder and its subfolders permissions to 777.
Now what I'm stuck on is the permalinks issue. My permalinks on axrtek.com read (as an example) axrtek.com/index.php/cloud-services.
Basically, my pages (other than the home page) only show up when using this custom permalink structure (/index.php/%postname%) or when permalinks are set to default.
I'd like to get rid of the index.php in all of my page url's...
Hugo Paz
15,622 PointsTry changing your permalinks to:
Custom Structure: /%postname%/
Do not add the domain or index.php
Also check if your URLs are correct in Settings > general
Brandon Brigham
3,716 PointsI tried putting just "/%postname%/" into Custom Structure but pages still did not show up - URL's are correct in Settings > General
2 Answers
Muhammad Mohsen
Courses Plus Student 10,843 PointsHi Brandon,
It sounds like you have permissions issue, wp-content/uploads should be writable.
permalink issue: Can you please post your htaccess content here? it seems permissions issue too, when you update your permalink via your admin cp, it's not really updating in htaccess.
Brandon Brigham
3,716 PointsHi Muhammad,
I just opened the htaccess file and it is completely blank.... Not sure why that is
Brandon Brigham
3,716 PointsThanks Muhammad,
So for some reason the htaccess file was completely blank so I went in and added the following WordPress script to the file:
BEGIN WordPress
<IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
END WordPress
Now my permalinks work on the 'Post Name' option
Muhammad Mohsen
Courses Plus Student 10,843 PointsGreat, what about uploading issue?
Hugo Paz
15,622 PointsHugo Paz
15,622 PointsHi Brandon,
When you migrated your site, did you follow these steps?