M
M
Mike Khromov2017-04-25 19:11:48
PHP
Mike Khromov, 2017-04-25 19:11:48

Wordpress htaccess and not working CNC. How to fix?

The essence of the problem is this - they do not want to work with the CNC.
If I set any URL display other than "simple" in the settings, the page immediately becomes 404.
cat .htacess

# 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>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Site Developer, 2017-04-25
@secsite

Either not Apache, or mod-rewrite does not work on it.
materiel

M
Mike Khromov, 2017-04-26
@MikeSilence

Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart

ServerAdmin [email protected]
ServerName site.ru
ServerAlias www.site.ru
DocumentRoot /var/www/html/site/publick_html
<Directory /var/www/html/site/publick_html>
     AllowOverride All
</Directory>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question