Z
Z
ZaurK2018-02-21 12:55:26
htaccess
ZaurK, 2018-02-21 12:55:26

Weird CNC problem, what to do?

Hello!
It's strange, there is a site on the server of the educational institution, links do not work on it, if you select any type in the settings, except for simple links, that is, links like derartment.mysite.ru/?page_id=157 work, and links like CNC do not work.
I took a new domain and hosting on the same server in order to try the site version without demolishing the main one, uploaded WordPress in a new way, installed the theme, selected links like "Day and name" in the link settings, added all the records again and created everything in a new way. Everything works, cnc works. Demolished the main site, uploaded files from the test site, replaced the URLs in the database dump and uploaded the database, turned it on and again the same problem - it only works if you select simple links. CNC does not work, except for the main 404 everywhere. I looked at .htaccess - it lies at the root in both sites and the content is identical and standard. Checked the mod rewrite module is enabled. I've broken my head, help if you have any ideas)
Here's what's in 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

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-02-21
@vaajnur

you have a subdomain. try config for SubDomain Example

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question