A
A
Artur2018-07-11 15:00:11
htaccess
Artur, 2018-07-11 15:00:11

Why is there a redirect to the main page?

Created forum directory, put wordpress there and installed wpforo forum.
I wanted to remove www.londonjack.ru/forum - www from the link, returned everything back, but now from chrome there is a redirect to the parent directory. Firefox and the forum opens from the phone, what could be the problem?
.htaccess wordpress, which is in londonjack.ru/forum/

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /forum/index.php [L]
</IfModule>

# END WordPress

.htaccess which is in londonjack.ru/
#Кодировка
AddDefaultCharset UTF-8
#Убераем html расширение в конце браузерной строки
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
RewriteRule ^([^.]+)\.html$ http://londonjack.ru/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.html [L]
#Запрет выдачи листинга каталогов
Options -Indexes
#Страницы ошибок
ErrorDocument 403 /error403.html
ErrorDocument 404 /error404.html
#Убираем index’ное дополнение из URL главной страницы сайта.
RewriteRule ^index\.html$ http://www.londonjack.ru/ [R=301,L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-07-11
@artur_kudaev

1. you have a redirect cache in your browser How to clear the redirect url cache?
2. you don't need to redirect, you need to change the DocumentRoot

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question