migration – Porting site URLs to new host but with same domain name

Question

I am migrating a WordPress site from one server to a different one for a client. I ported all the themes and wp-config.php files (wp-content folde, wp-config.php and the entire database) as I’ve seen in tutorials. The domain name isn’t changing, only the host server (so basically a new IP address).

The site works well on the new host. On the domain name site also the IP address it should point to has been updated. This new host is a raspberry pi , so all necessary set ups have been done (port forwarding and such).

The problem is that only the home page is getting served by the Pi. All other pages get served by the old host. Also the image URLs (and it would seem all the internal linking to other pages as well) point to the old host. If the site gets taken down from the old host, all pages except the home page return a 404.

Since the domain name isn’t changing, I don’t know how to use Velvet Blues to port the URLs. What should I do ?

in progress 0
RishiC 1 month 2021-06-18T22:56:18-05:00 0 Answer 0 views 0

Answer ( 1 )

    0
    2021-06-21T13:29:12-05:00

    If you’re using Apache as a webserver, make sure that mod rewrite is active and .htaccess files are read and used in vhosts. You should allow overrides in the vhost. Like this:

    <Directory /var/www/site/example.com/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

Leave an answer

Browse
Browse