vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Change vbulletin installation directory (https://vborg.vbsupport.ru/showthread.php?t=260989)

strudinox 03-27-2011 04:06 AM

Change vbulletin installation directory
 
When I first installed Vbulletin I threw all the content into the /main directory after my web root. So my url looks like http://url.com/main/content.php. I want a very SEO friendly way of moving all the content out of the /main folder, into the / folder so my urls look something like http://url.com/content.php. I'm thinking the only way is to do a 301 redirect using the .htaccess folder, but I have absolutely no idea how to do it.

Am I on the right track? Thanks!

HMBeaty 03-27-2011 04:13 AM

<a href="http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm" target="_blank">http://www.tamingthebeast.net/articl...1-redirect.htm</a>

And you would also obviously have to move the files to the new directory and change the settings in your vBulletin Options in your AdminCP for "Site Name / URL / Contact Details"

strudinox 03-27-2011 09:10 PM

Thanks for the info HMBeaty. I think my issue is, how would I create an htaccess file that would redirect every old page to the new page?

--------------- Added [DATE]1301335479[/DATE] at [TIME]1301335479[/TIME] ---------------

Would something like this work for Vbulletin?

Code:

RedirectMatch 301 /main/(.*) //$


All times are GMT. The time now is 01:04 PM.

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.00933 seconds
  • Memory Usage 1,712KB
  • 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
  • (3)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