Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2013, 12:55 AM
mikez006 mikez006 is offline
 
Join Date: Mar 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default remove CMS content redirect

I just upgraded from 4.2 to 4.2 suite and have setup the CMS to be the sites homepage, however the homepage is now mysite.com/content/ instead of just mysite.com.

Can someone help me to change this to just my domain and remove the redirect. I've found a dozen or so posts about this issue, but none of them have worked for me. I'm willing to pay for the help.
Reply With Quote
  #2  
Old 09-08-2013, 01:04 AM
OFFSHORE DAN OFFSHORE DAN is offline
 
Join Date: Jun 2005
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just figured out how to do this and this is what worked for me.

1. Credit these guys from this thread for this plugin:

http://www.vbulletin.com/forum/forum...ing-to-content

Create plugin using init_startup as the hook.

if ($_SERVER['REQUEST_URI'] == '/')
{
$vbulletin->options['friendlyurl_canonical'] = 0;
}

if ($_SERVER['REQUEST_URI'] == '/content/')
{
exec_header_redirect('/', 301);
}

2. Go to your index.php in 4.21 and change

require('forum.php');

to

require('content.php');

3. Vboptions:

CMS Component URL: Optional URL for your CMS: Put in your domain http://www.domain.com

4. Vb Options: Friendsly urls -> Mod Rewrite Friendly URLs (on)

5. Enforce Canonical URL -> Standard

6. Friendly URL Unicode -> Convert to UTF-8

7. NCR Encode UTF-8 URLs for IE -> Yes

8. Change content tab in navigation manager to : index.php

I hope this helps because I just spent 4 hours trying to figure out a way to get it all working. Now my default content page does not have the /content/ on it.
Reply With Quote
Благодарность от:
Lynne
  #3  
Old 02-16-2014, 12:07 PM
mattltm's Avatar
mattltm mattltm is offline
 
Join Date: Apr 2009
Location: London/Kent
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect!

This thread should have way more "thanks" comments based on the number of people that seem to ask how to do this.

Great job and works perfect on 4.2.2
Reply With Quote
Благодарность от:
charlesr
  #4  
Old 05-14-2014, 11:50 AM
sergioloporto sergioloporto is offline
 
Join Date: Jul 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OFFSHORE DAN View Post
8. Change content tab in navigation manager to : index.php

I hope this helps because I just spent 4 hours trying to figure out a way to get it all working. Now my default content page does not have the /content/ on it.
Hi, I did all the steps, but when I apply this last step, and I replace
PHP Code:
content.php{session.sessionurl_q
with
PHP Code:
index.php{session.sessionurl_q
, then the CMS stops working and no matter if I go to the / homepage, or /content/ or /forums/ it always shows the forum page.

Anything wrong?
Reply With Quote
  #5  
Old 06-05-2014, 11:44 AM
charlesr charlesr is offline
 
Join Date: Aug 2009
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only problem I hit was somehow I ended up with Optional URL for your CMS as http//http://www.bordersdown.net After I corrected it, this all worked.

THANK YOU THANK YOU THANK YOU OFFSHORE DAN. Been trying to figure this out for months now.

I'm now off to do a backup
Reply With Quote
  #6  
Old 06-08-2014, 07:39 AM
charlesr charlesr is offline
 
Join Date: Aug 2009
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Slight modification to this. I made the target url for the articles tab to be my domain's url (instead of "index.php"). Not sure if this makes any different to google, but it might. Otherwise it might think that the homepage and the /index.php page are 2 different pages with duplicate content.
Reply With Quote
  #7  
Old 05-12-2015, 11:16 AM
majjed2008 majjed2008 is offline
 
Join Date: Dec 2011
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much
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 12:43 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.15327 seconds
  • Memory Usage 2,227KB
  • 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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete