The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
.htaccess: RewriteEngine not allowed here, !*! ramzes3000, 29-Апр-22, 00:40  [смотреть все]
Привет.
Apache/2.4 (Ubuntu)
Уже не знаю, что делать.  Выручайте.

internal server error 500
в логах .htaccess: RewriteEngine not allowed here

/etc/apache2/sites-available/000-default.conf

<VirtualHost *:80>
ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

<Directory />
     AllowOverride FileInfo Options
        AllowOverride All
</Directory>


.htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php

  • .htaccess: RewriteEngine not allowed here, !*! ramzes3000, 01:13 , 29-Апр-22 (1)
    >[оверквотинг удален]
    >  CustomLog ${APACHE_LOG_DIR}/access.log combined
    > <Directory />
    >     AllowOverride FileInfo Options
    >     AllowOverride All
    > </Directory>
    > .htaccess:
    > RewriteEngine on
    > RewriteCond %{REQUEST_FILENAME} !-f
    > RewriteCond %{REQUEST_FILENAME} !-d
    > RewriteRule . index.php

    не там редактировал, а нужно было
    /etc/apache2/apache2.conf

    <Directory /var/www/html>
            AllowOverride FileInfo Options
            AllowOverride All
    </Directory>




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру