vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   301 on everything (https://vborg.vbsupport.ru/showthread.php?t=263453)

roofius 05-11-2011 04:38 AM

301 on everything
 
Hello!

I'll shut down my forum completely. What is left is only an index page with information.
Anyone know how to make 301 in all the old pages with .htaccess? I have a couple thousand indexed pages in google.

Info

Webbserver: Apache, with mod_rewrite.
The forum is located directly on the http://www.domain.com and not http://www.domain.com/forum

Thanks

TomorrowsGaming 05-11-2011 10:56 AM

Good question and you are also on the right path about 301 redirects since that is the best way to preserve your current Search Engine Ranks. 301 is a permanent redirect, Lets say you want to redirect http://yourdomain.com/forum to now http://yourdomain.com , meaning your old site is in the 'forum' directory and now you want to redirect it to the root or why other domain...So In this case you could simply use the good old .htaccess method.

Due to SEO we did this on one of our vbulletin forums recently and its a relatively simple process really. For example, our forum was located at http://:forums.tomorowsgaming.com, after using the .htaccess redirect, all incoming links are now being automatically redirected to the root folder, http://tomorrowsgaming.com. Here is how you would go abouts doing it..

Using the code below create a new .htaccess file inside your current directory,
eg. 'forum' , this should redirect all your incoming links and preserve your seo,
Code:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]


You are done! See, piece of cake.. :)
After that, you can go check if your 301 redirect is working properly here http://www.ragepank.com/redirect-check/


All times are GMT. The time now is 04:44 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.01507 seconds
  • Memory Usage 1,711KB
  • 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
  • (2)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