форум vBSupport.ru > vBulletin > vBulletin 4.2.x > Вопросы по vBulletin 4.2.x
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
d4wwrw3r3er
Простоузер
Default не работает rewrite nginx
0

Подскажите почему не работает rewrite /member.php/.* /member.php;
стоит простые ЧПУ

location / {
index index.php index.html;
try_files $uri $uri/ /index.php?$args;
rewrite /showthread.php/.* /showthread.php;
rewrite /forumdisplay.php/.* /forumdisplay.php?$1;
rewrite /member.php/.* /member.php;
rewrite /archive/index.php/.* /archive/index.php;

d4wwrw3r3er добавил 11.01.2022 в 23:37
Выдает 404
если /forumdisplay.php?blabla
все нормально

Last edited by d4wwrw3r3er : 01-12-2022 at 03:37 AM. Reason: Добавлено сообщение
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Smalesh
В Черном списке
Default
0

http://nginx.org/ru/docs/http/ngx_ht...e.html#rewrite
Code:
rewrite /members/.*    /member.php?$uri&$args  last;
 
 
Konkere
Знаток
 
Konkere's Avatar
Default
2

Недавно столкнулся с подобной же проблемой.
Оставлю тут для памяти, вдруг кому и пригодится:
Code:
	rewrite /showthread.php/(.*)	/showthread.php?$1	last;
	rewrite /forumdisplay.php/(.*)	/forumdisplay.php?$1	last;
	rewrite /members.php/(.*)	/member.php?$1	last;
	rewrite /blog.php/(.*)	/blog.php?$1	last;
	rewrite /entry.php/(.*)	/entry.php?$1	last;
	rewrite /archive/index.php/(.*)	/archive/index.php?$1	last;
 
 
Лис
Эксперт
 
Лис's Avatar
Default
0

А я даже не знал что не работает. Полез смотреть и действительно.
@Konkere, спасибо)
 

Tags
nginx


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 12:08 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...