vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   remove CMS content redirect (https://vborg.vbsupport.ru/showthread.php?t=297137)

mikez006 04-13-2013 12:55 AM

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.

OFFSHORE DAN 09-08-2013 01:04 AM

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.

mattltm 02-16-2014 12:07 PM

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

sergioloporto 05-14-2014 11:50 AM

Quote:

Originally Posted by OFFSHORE DAN (Post 2444029)
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?

charlesr 06-05-2014 11:44 AM

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 :)

charlesr 06-08-2014 07:39 AM

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.

majjed2008 05-12-2015 11:16 AM

thank you very much


All times are GMT. The time now is 11: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.00993 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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