Hi all,
I have a problem that I can not solve alone.
After having made the backup of my Website files (public_html directory content) and MySQL database (phpMyAdmin), I installed the local version of my website with XAMPP in a directory of my PC at C:/xampp/htdocs/SiteName.
When opening the local website, calling the different pages, the error “404-Page not found” appears because instead of calling the page with the correct address http://localhost/SiteName/PageName the page is searched for in the wrong address http://localhost/PageName.
I assume that if, from a certain object of a page of my local website, I call a page with the syntax “/PageName” this should be interpreted as “http://localhost/SiteName/PageName” and not as “http://localhost/PageName” (which is instead generating the error): is it correct?
In the WP Dashboard on SEO -> Tools -> Edit File I modified the .htaccess file as follows:
BEGIN WordPress
RewriteEngine On
RewriteBase / SiteName /
RewriteRule ^ index \ .php $ - [L]
RewriteCond% {REQUEST_FILENAME}! -F
RewriteCond% {REQUEST_FILENAME}! -D
RewriteRule. / SiteName /index.php [L]
END WordPress
Furthermore the URL set in Wordpress General Settings is:
WordPress address (URL): http://localhost/SiteName
Site address (URL): http://localhost/SiteName.
Where am I doing wrong?
Thanks in advance for the help I hope you will provide me.
Best regards, Alessandra.
