Problem with subdomain and photos hosting
-
Hi.. I tried today to move my photos to a subdomain, but i have big problems..
My site is here: https://bit.ly/hzLRFB”
So from the start..
1) I have wordpress site installed in the root :
domain.com Website at httpdocs
2) I made from plesk a subdomain : img.domain.com
Website at httpdocs/images3) In httpdocs folder ( root of my wordpress install) i have made a folder “images” . ( httpdocs/images )
4) I removed my images from wp-content/uploads to httpdocs/images folder
5) In the admin panel, in media settings i had put these:
images
img.domain.com6) I have run these 2 sql commands
– UPDATE posts SET post_content = REPLACE(post_content,’https://www.yourdomain.com/wp-content/uploads/’,’https://images.yourdomain.com/’)
– UPDATE posts SET guid = REPLACE(guid,’https://www.yourdomain.com/wp-content/uploads/’,’https://images.yourdomain.com/’)
7) i added :
RedirectMatch 301 /wp-content/uploads/(.*)$ https://images.yourdomain.com/$1 in .htaccessAfter all of these my site had almost all photos broken, i couldn’t make new uploaded photos to be appeared, but a little of the photos were moved in new path and showing good …
For example: https://img.greek-radar.gr/2012/04/metron-analysis-dimoskopisi.jpg
So now i moved back from admin panel to the old path for photos … and i have two destination photos! The new like this:
https://img.greek-radar.gr/2012/03/wpid-twitter-follow1.jpeg
and the old like this:
https://www.greek-radar.gr/wp-content/uploads/2012/04/wpid-eforia-taxisnet-660_1.jpg
So TOTAL DISASTER!
What is the mistake? Please HELP!!!!
- The topic ‘Problem with subdomain and photos hosting’ is closed to new replies.