Y
Y
Yaroslav Volodymyrovich2015-08-11 11:20:54
PHP
Yaroslav Volodymyrovich, 2015-08-11 11:20:54

After importing the database, only the main page opens, how to fix it?

A backup copy of the database (.sql) and a site archive are made. The site is hosted by the provider. I decided to deploy this site (LAMP) on my web hosting, restored .sql using phpmyadmin + copied the folder with the dynamic site (more precisely, the online store) /www/site ... here is all the site data.
After import, only the main page opens, and then, some images are not displayed, I understand that relative, absolute paths, etc., should be configured somewhere, but I don’t know where, tell me please?
I go to the page from the main one, for example prom.html, well, it naturally says that the page was not found, because prom.html is not in the root of the site, but how did it work before?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LFFATE, 2015-08-11
@LFFATE

it looks like a problem with .htaccess, if you made an archive through the provider's web muzzle, then most likely it simply was not copied. This option is often disabled with "don't show hidden files" or something like that. And files with a leading dot in Unix are considered hidden. Check the new site for this file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question