vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   htaccess question (https://vborg.vbsupport.ru/showthread.php?t=114135)

Boofo 04-26-2006 04:44 PM

htaccess question
 
Does anyone know what I need to add to the htaccess file to re-direct a few URLs to another URL?

I, Brian 04-27-2006 05:42 AM

It depends how complicated you need to make the redirects.

If you're talking about simply redirecting from one URL to another, because the original has been deleted, then something like this in your .htaccess fil should work fine:

Code:

Redirect permanent /forum/showthread.php?t=114135 https://vborg.vbsupport.ru/showthread.php?t=114200
It simply lists the relative URL to redirect from, and the absolute URL to redirect to.

That presumes you are running your forums in the subfolder "forum" and that the forum URL is vbulletin.org. :)

Simply change these as appropriate - for example, if your forum is installed at the root, simply remove the forum subfolder.

Boofo 04-27-2006 05:51 AM

Quote:

Originally Posted by I, Brian
It depends how complicated you need to make the redirects.

If you're talking about simply redirecting from one URL to another, because the original has been deleted, then something like this in your .htaccess fil should work fine:

Code:

Redirect permanent /forum/showthread.php?t=114135 https://vborg.vbsupport.ru/showthread.php?t=114200
That presumes you are running your forums in the subfolder "forum" and that the forum URL is vbulletin.org. :)

Simply change these as appropriate - for example, if your forum is installed at the root, simply remove the forum subfolder.

I want to redirect from the forums dir to the forum dir. I also have one named boards that I want to redirect to forum.

SaN-DeeP 04-27-2006 10:37 AM

Redirect forums to forum dir
Code:

RewriteRule ^forums.* http://www.yourdomain.com/forum [L,R=301]
If you want to re-direct your named boards to forum folder this will work for you.
in your named baords root .htaccess file place this:

Code:

RewriteEngine on
RewriteRule ^([/]+)$ forum/$1 [L,R=301]

make sure you test the .htaccess re-direction rules thoroughly before making your site live, you can try using this link to test your redirects:
http://www.webconfs.com/redirect-check.php

Boofo 04-27-2006 11:08 AM

Quote:

Originally Posted by SaN-DeeP
Redirect forums to forum dir
Code:

RewriteRule ^forums.* http://www.yourdomain.com/forum [L,R=301]
If you want to re-direct your named boards to forum folder this will work for you.
in your named baords root .htaccess file place this:

Code:

RewriteEngine on
RewriteRule ^([/]+)$ forum/$1 [L,R=301]

make sure you test the .htaccess re-direction rules thoroughly before making your site live, you can try using this link to test your redirects:
http://www.webconfs.com/redirect-check.php

Which is the best way to do it? In each named board or in the root htaccess?


All times are GMT. The time now is 09:28 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.01804 seconds
  • Memory Usage 1,723KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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