G
G
gomer17262016-02-04 19:41:08
PHP
gomer1726, 2016-02-04 19:41:08

Not Found The requested URL / was not found on this server. What's wrong with a site transfer?

When transferring a site (WORDPRESS) from localhost to a real server, it gives such an error .htaccess seems to have been fixed and the URL has been replaced in the database By the way, the .htaccess file itself
Header append Vary: Accept-Encoding
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ./index.php [L]
# END WordPress

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gomer1726, 2016-02-04
@gomer1726

All the same, if someone needs all the code in the .htaccess file, replace it with this
RewriteBase /
RewriteEngine On
RedirectMatch 404 /.(svn|git|hg|bzr|cvs)|dump.sql(/|$)
RewriteCond %{REQUEST_METHOD } ^(TRACE|TRACK)
RewriteRule ^$ index.php [L]
RewriteCond %{REQUEST_URI} (dfiles/.*)
RewriteRule ^(.*)$ /dfiles.php?request=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.+)$ $1 [L]
RewriteCond %{REQUEST_URI} !(jscss/.*)!(img/.*)!(image.php.*)!(video.php.*)
RewriteRule ^ (.*)$ /index.php?rad_pr=1&request=$1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question