If this is the wrong place for this let me know.

I have a wp site I am trying to set up on localhost for dev that uses ajax requests that resolve to root (/).

The problem I have is that the requests are being interpreted as http://localhost/user/ not http://localhost/public_html because of the extra folder in the structure.

Original site:

domain > public_html > wpinstall

However in my local and shared hosts it is:

domain > user > public_html > wpinstall

This means roots child is user not public_html like it needs to be and the site 404’s.

Does anyone have a solution?

Read more here: Problem with ajax request and directory structure after site migration


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: