V
V
vkup2018-03-10 20:47:37
Apache HTTP Server
vkup, 2018-03-10 20:47:37

What is the error in .htaccess?

.htaccess looks like this:

AddDefaultCharset utf-8
AddCharset utf-8 *

RewriteBase /
RewriteEngine on
RewriteRule ^f.min.reg/?$ /inc/forms/mini_reg.php
RewriteRule ^f.vk.add/?$ /inc/forms/vk_add.php

# Реф.ссылка
RewriteRule ^ref((.*?))?/?$ index.php?ref=$1

# Активация аккаунта
RewriteRule ^activate/?$ activate.php

# Авторизация пользователя
RewriteRule ^auth/?$ /modules/users/auth.php

# Регистрация пользователя
RewriteRule ^reg/?$ /modules/users/reg.php

# Запрос письма об активации
RewriteRule ^reemail/?$ /modules/users/reemail.php

# Аккаунт удален
RewriteRule ^deleted/?$ deleted.php

# Аккаунт заблокирован
RewriteRule ^blocked/?$ blocked.php

# Восстановление пароля
RewriteRule ^restore/?$ /modules/restore/index.php
RewriteRule ^restore/(.*?)/?$ modules/restore/$1.php

# Статистика аккаунта
RewriteRule ^stats/?$ /modules/stats/index.php

# Топ пользователей
RewriteRule ^top/?$ /modules/top/index.php

# Задания
RewriteRule ^tasks/?$ modules/tasks/index.php
RewriteRule ^tasks/(.*?)/?$ modules/tasks/$1.php

# Категории для заданий
RewriteRule ^categories/?$ modules/categories/index.php
RewriteRule ^categories/(.*?)/?$ modules/categories/$1.php

# Поддержка
RewriteRule ^support/?$ modules/support/index.php
RewriteRule ^support/(.*?)/?$ modules/support/$1.php

# Мои настройки
RewriteRule ^settings/?$ modules/settings/index.php
RewriteRule ^settings/(.*?)/?$ modules/settings/$1.php

# Страницы
RewriteRule ^page/(.*?)/?$ modules/pages/index.php?page=$1 [L,QSA]

# Блог
RewriteRule ^blog/?$ modules/blog/index.php
RewriteRule ^blog/(.*?)/?$ modules/blog/$1.php

# Жалобы
RewriteRule ^complaints/?$ modules/complaints/index.php
RewriteRule ^complaints/(.*?)/?$ modules/complaints/$1.php

# Обмен на голоса
RewriteRule ^exchange/?$ modules/exchange/index.php
RewriteRule ^exchange/(.*?)/?$ modules/exchange/$1.php

# Реклама
RewriteRule ^asd/?$ modules/asd/index.php
RewriteRule ^asd/(.*?)/?$ modules/asd/$1.php

# Оплата
RewriteRule ^pay/?$ modules/pay/index.php
RewriteRule ^pay/(.*?)/(.*?)/?$ modules/pay/$1/$2

# Выход
RewriteRule ^logout/?$ modules/logout/index.php

# Каптча
RewriteRule ^secure/?$ modules/captcha/index.php

# Чат
RewriteRule ^chat/?$ modules/chat/index.php
RewriteRule ^chat/(.*?)/?$ modules/chat/$1.php

The index page is displayed well, but the internal pages are not displayed at all - a white background or Страница недоступна
When added to .htaccess, php_flag display_errors = Oneven the main page is not displayed: 500 Internal Server Error
What's wrong? How to fix the error? Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moris Haos, 2018-03-11
@morihaos

Hello,
Without logs - this is fortune telling.
Look at the logs - you will immediately see where and what stumbles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question