vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I remove the redirect forum.php at the forum vBulletin 4.2.0? (https://vborg.vbsupport.ru/showthread.php?t=290560)

SWSUSA 11-12-2012 12:04 PM

How do I remove the redirect forum.php at the forum vBulletin 4.2.0?
 
Hi! Now the address of my forum looks so http://glbyh.ru/forum.php, it is necessary that was http://glbyh.ru.

How to clean forum.php redirect at a forum? Similar subjects read several times, looked on the Internet, all somehow scraps and isn't up to the end clear, there is no clearness, the answer wasn't found. I need to be sure for 100 %.

Thanks! :)

SWSUSA 02-16-2013 01:03 AM

Help please!

Digital Jedi 02-16-2013 06:09 AM

Sometimes, this is provided by your host. If they provide cPanel, there should be an option for a redirect. If not, they should be able to set this up for you.

SWSUSA 11-03-2013 02:36 AM

Help please!

ForceHSS 11-03-2013 02:59 AM

you first posted this back in 12 Nov 2012, 12:04 dont be silly

mokujin 11-03-2013 01:39 PM

In vBulletin Options -> Forums Home Page Options -> Script Name for Forum Home Page change to index and file forum.php change to index.php

SWSUSA 08-08-2015 12:28 AM

Hello everyone! I told him how I solved the problem. Long suffered. Inserts all sorts of different codes .htaccess but nothing helped. Make changes to the admin panel, did not help.

And all because the web server Nginx, 301 redirect is configured in the configuration file nginx.conf.
Harvesting /index.php and /forum.php in Nginx. Insert the following code to the configuration file:

Всем привет! Рассказываю как я решил проблему. Долго мучался. Вставлял всякие разные коды в .htaccess но ничего не помогало. Делал изменения в панели администратора, не помогало.

А всё потому, что в веб сервере Nginx, 301 редирект настраивается в конфигурационном файле nginx.conf.
Убираем /index.php и /forum.php в Nginx. Вставил следующие коды в конфигурационный файл:

Code:

    location ~ ^/index.(html|php)$ {
    if ($request_uri ~ ^/index.(html|php)) {
    rewrite ^.*$ / permanent;
    }
    }
       
    location ~ ^/forum.(html|php)$ {
    if ($request_uri ~ ^/forum.(html|php)) {
    rewrite ^.*$ / permanent;
    }
    }

Now requests /index.php /forum.php and will give 301 redirect to http://glbyh.ru, and the site will be entirely work as before.

Теперь запросы на /index.php и /forum.php будут давать 301 редирект на http://glbyh.ru, а сам сайт целиком будет работать как и прежде.

Check redirect here http://www.prcy-info.ru/index.php/redirect-checker

Проверить наличие редиректа можно здесь http://www.prcy-info.ru/index.php/redirect-checker


All times are GMT. The time now is 10:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01299 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete