Search code examples
wordpressiishttp-status-code-404vpspermalinks

404 error after putting WordPress on my vps server but homepage does work


So my WordPress site worked perfectly on my localhost, until I transferred it to my Windows Server machine. Now, only the index still works; the other pages give me a 404 error.

I have already tried changing permalink options and other fixes, but nothing has worked.

How I can get my other pages online?


Solution

  • Its too easy

    1. go to wp-admin in your WordPress.
    2. in dashboard go to settings.
    3. in settings go to Permalink Settings.
    4. in Permalink Settings if your Common Settings set on Day and name or anything else change it to Plain.
    5. save the setting and go to your web pages.
    6. if every things work correctly back to Permalink Settings and change Common Settings on Day and name or anything you want.