Nidal Zd
Nidal Zd

Reputation: 149

Wordpress error while moving site from localhost to live server

I developed a Wordpress site on localhost and I wanted to take it live. I had my domain and host, zipped the Wordpress site file from htdocs and moved it to the host https docs, exported the database to the host in SQL format, changed the URL in wp-options table, established the connection in wp-config file, and the site showing the first page only. Other pages error 404, can't edit via elementor, can't add a new page (you are offline error). Can you help me find the error please?

Note: using Plesk as a host.

Upvotes: 1

Views: 344

Answers (2)

Thomas
Thomas

Reputation: 121

Have you checked that an .htaccess file exists in your document root with at least this content?

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

If the file is missing, simply create a text file in your websites's document root named ".htaccess" with above content. When the file is missing and you try to use permalinks in Wordpress, only your start page can be displayed.

Upvotes: 1

TECH FREEKS
TECH FREEKS

Reputation: 317

Can you access the WordPress Admin Dashboard? If yes, please go under Settings > permalinks, and try clicking Save without making any changes. This should flush the permalink settings. After that, check if it's resolved.

Upvotes: 2

Related Questions