Permalinks are not working after importing a wp site to a new wordpress installation

[ad_1]

Hey everyone, so recently I posted about not being able to increase the maximum upload file size and I was able to figure it out thanks to you guys.

I installed WordPress on a Raspberry Pi with Apache and MariaDB.

The import worked fine. The site was built using “Local” on my personal laptop and imported to the pi.

The problem now is, after I imported the site to the raspberry pi, only the home page can be seen.

If I click on any button that should take me to another page, it shows:

Not Found
The requested URL was not found on this server.

Apache/2.4.54 (Raspbian) Server at 192.168.1.6 Port 80

The url in the browser is:

The only url that works is:

Back when I was using Local, the url looked like this if I navigated to the contact page:

This is what I have in permalinks settings:

​

All pages are exactly the same as when I created them using “Local”

Not sure really what to do…I was thinking maybe it has to do with:

/var/www/html/wordpress

Thats where all my wordpress files live, inside that “wordpress folder”

Scratching my head, maybe move everything inside “wordpress” folder in the root of “html”?

[ad_2]
4 Comments
  1. This sounds stupid, but have you tried just hitting save permalinks? That rebuilds the redirect tree.

  2. Apparently WordPress has been having a lot of compatibility issues since they updated to UPT 8.1, my entire site ceased to exist when it updated, thankfully it wasn’t during business hours. We had to change themes and redesign large portions of our businesses site with little to no notice, gotta love WordPress.

    ​

    Edit: added “UPT”

  3. I assume that you have changed hosturl and siteurl correctly.

    If /wordpress works but you are getting 404s on other urls, you might have a .htaccess issue or an apache conf issue. I would start there and make sure your calls are getting pass apache first.

  4. WordPress uses absolute paths, not relatives. So you have to edit your data base, find and replace your old domain name for the new one.

    Here two recommended readings:

    [https://wordpress.org/support/article/changing-the-site-url/])

    [https://www.wpexplorer.com/migrating-wordpress-website/#change-domain]) <- Step 7

    Regards

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer