A
A
ayapergenov2018-07-10 06:56:41
open server
ayapergenov, 2018-07-10 06:56:41

How to fix 404 error on Wordress?

Transferred a site to Wordpress from a personal PC to a local server on a Windows server 2016 inside the company's local network. IE Enhanced Security mode is disabled.
Successfully installed the open_server_5_2_8_basic version engine on Windows server 2016.
The default localhost starts without problems.
Created .htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

The domain name on the working PC and the local server where the site will work are identical.
I go to my sites - the desired domain. But instead HTTP Error 404. The requested resource is not found. And so in any browser.
The domain was registered in hosts.
I tried to start pure Wordpress, the start page of the engine installation opens successfully.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ayapergenov, 2018-07-10
@ayapergenov

The problem was in port 80 being occupied by the server's system process.
Because of this, I moved the Open Server to port 8080 and the site stopped working.
I found this solution:
You can free up port 80 occupied by system in windows in the following way.
Win + R, enter "regedit" (without quotes).
We are looking for the “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP” branch.
We change the value of the “start” key from 3 to 4 ... before that I met advice to set 0. So zero did not help me.
We restart the computer.
We are glad that we found the necessary information so quickly.
P, S- BEWARE! Apache will work - the network printer will stop working.
Can someone tell me how to make wordpress friends with ports other than 80

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question