Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2010, 08:48 PM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default URL redirect after moving forum

I hope I am phrasing this correctly...

I've moved my forum from the main root folder to the "forum" folder -- from http://jpicforum.info to http://jpicforum.info/forum/ -- and I would like to know how I can permanently redirect all my currently indexed "powered by vbulletin" pages to the new url structure.

My main forum index had been http://jpicforum.info/index1.php - but now the forum index is http://jpicforum.info/forum/ -- So for instance I want what was http://jpicforum.info/adult-writes/ to redirect to new http://jpicforum.info/forum/adult-writes/ url

What's the easiest way to accomplish this please?

Jacquii.

btw - I am using vBSEO...
Reply With Quote
  #2  
Old 12-17-2010, 09:00 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe with htaccess... untested but perhaps something like this:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?jpicforum\.info
RewriteRule (.*) http://jpicforum.info/forum/$1 [R=301,L]
Reply With Quote
  #3  
Old 12-18-2010, 06:11 PM
Roms's Avatar
Roms Roms is offline
 
Join Date: Jun 2004
Location: Witness ProtectionProgram
Posts: 1,841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make an index page (just take a .txt file put this code in it and rename it index.html) and put it in the old folder...
HTML Code:
<script type="text/javascript"><!--window.location = "http://jpicforum.info/forum/"//--></script>
But, calories way is probably better lol
Reply With Quote
  #4  
Old 12-22-2010, 02:47 AM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah htaccess is a better way. you can also sometimes set up htaccess within your Cpanel if you are using that on your hosting package. i believe there is a link in the panel for redirection if I remember properly. The vBSEO guys would also probably have a really good idea of what to do as well.
Reply With Quote
  #5  
Old 12-24-2010, 07:43 PM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the response guys

You can see all the pages we have indexed in Google - particularly the links that go to the forum. Ideally it would be nice to simply have a script of some sort or url re-direct specifically for the forum posts.

I already have a redirect of sorts in place = browse to http://jpicforum.info/blablabla/ -- I use a meta refresh code to auto redirect to my new homepage.

HTML Code:
<meta http-equiv="refresh" content="6; URL=http://jpicforum.info/"><a href="http://jpicforum.info/">Click here to redirect to the homepage.</a>
((sigh...))

IDK - I was just hoping that there would be an easy way to automatically redirect all old urls to the http://jpicforum.info/forum/ new 'forum' folder.
Reply With Quote
  #6  
Old 12-29-2010, 12:40 AM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just as an fyi...

Actually it's pretty interesting. I have the vBSEO sitemap addon installed of course... It has been generated twice since I've re-opened my forum and interestingly enough -- it seems as if all my links have been correctly re-indexed with the http://jpicforum.info/forum/ url

I truly did not expect that to happen, and to happen so quickly. But apparently it has.

Anyway - thanks again for the suggestions ya'll - and happy 2011 to you all

Jacquii.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07258 seconds
  • Memory Usage 2,211KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete