I
I
Ilya Pavlov2015-08-12 23:19:40
Apache HTTP Server
Ilya Pavlov, 2015-08-12 23:19:40

Ubuntu Server/Apache/WordPress/404/403 + .htaccess and all because of mod_rewrite and WordPress permalinks?

In short:
1. WordPress permalinks didn't work (404 Error). Solution:
in .htaccess write:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
2. No change. Mod_rewrite didn't seem to work. In the SSH console:
# apache2 -l
There is no mod_rewrite in this list:
# a2enmod mod_rewrite
It is written that it is enabled, but it did not appear in the list.
2. WordPress permalinks still not working (already 403 Error). Decision:
Everything that is possible - 777 rights!
3. Still got 403. Everywhere possible in the Apache settings: AllowOverride All.
4. Nothing helps. Last Hope - Toster)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Pavlov, 2015-08-13
@PiCoderman

I found it myself: in the host conf file (/etc/apache2/sites-available/site.ru.conf) remove the parameter: Options None. Provided that there it is necessary to leave AllowOverride All. Plus, .htaccess rights are 777, or maybe a little less...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question