Z
Z
ZaurK2018-02-19 16:00:49
htaccess
ZaurK, 2018-02-19 16:00:49

Why don't links work when I go to "Post Name"?

Good afternoon! Please help me figure out and fix the problem. I made a simple site on wordpress, uploaded it to the server and found a problem - links work only if simple links like uniid.loc/?p=123 are selected in the console. I also need the links to work when going to the "post name" - links like uniid.loc/sample-post , but the links stop working. In .htaccess, I temporarily set permissions to 777, inside the following:

# 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

And on open server on LAN everything works. Is it possible to assume that the matter is in some hosting settings? What to pay attention to, where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-02-19
@azerphoenix

- remove htaccess
- go to Settings - Permalinks, configure SPU and update.
- Settings - General - change the domain to a new one
- install the better search replace plugin.
enter old domain, new domain, check change guid, uncheck idle mode, run replacement

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question