Answer the question
In order to leave comments, you need to log in
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
Either not Apache, or mod-rewrite does not work on it.
materiel
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 questionAsk a Question
731 491 924 answers to any question