Avatar of Manoj Chacko
Manoj Chacko
 asked on

Wordpress moved my site from Xampp to IIS 10, images not loading.

Wordpress I moved my site from Xampp to IIS 10, currently running the server copy as a local version for test it, but my images are not loading. and when I login the redirect back to the page not working as well any idea how to fix this.
* iis10WordPressApache Web Server

Avatar of undefined
Last Comment
Manoj Chacko

8/22/2022 - Mon
ArneLovius

What method did you use to move the site ?
Manoj Chacko

ASKER
I just copied the files in htdocs over. Database is still the same, not moving.
ArneLovius

Presuming that the images were originally under /htdocs, and that you have a working install of PHP etc on the IIS host, have you checked file permissions ?

This may be of use  https://blog.zaven.co/install-wordpress-iis/

When changing platforms, it is usually best to do a clean install of the application to test that it all works as expected before migrating to it.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Peter Hart

Maybe your local copy would be looking for the images using the full path  (url) ?

I would rename or delete the .htaccess file in the root folder  (probably htdocs)
and then log in.
then go to settings->permalinks and resave them to create a new .htaccess file
ArneLovius

@chilternPC on IIS a .htaccess file is just a file, it does not affect how IIS serves content without a 3rd party module.

https://docs.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-applications-on-iis/translate-htaccess-content-to-iis-webconfig

http://www.helicontech.com/ape/
ASKER CERTIFIED SOLUTION
Manoj Chacko

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Manoj Chacko

ASKER
had to define site on the wp-config file which fixed image loading issue
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.