vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   I have a wordpress page but I want to keep my forum (https://vborg.vbsupport.ru/showthread.php?t=281659)

Fudgyyy 04-17-2012 03:19 AM

I have a wordpress page but I want to keep my forum
 
So I have a vBulletin forum and it's been in my root folder since I first started. But I want to make a wordpress page my homepage, and have the vBulletin forum as part of the site. So my site is named www.maddenstudents.com, and as of right now that takes it to our vBulletin forum. The forum is also linked www.maddenstudents.com/forum.php.

My wordpress page is set to www.maddenstudents.com/home. How do I get it so that my wordpress page automatically comes up when I type in www.maddenstudents.com instead of the forum.

EasyEazy 04-17-2012 04:33 AM

Quote:

Originally Posted by Fudgyyy (Post 2320784)
So I have a vBulletin forum and it's been in my root folder since I first started. But I want to make a wordpress page my homepage, and have the vBulletin forum as part of the site. So my site is named www.maddenstudents.com, and as of right now that takes it to our vBulletin forum. The forum is also linked www.maddenstudents.com/forum.php.

My wordpress page is set to www.maddenstudents.com/home. How do I get it so that my wordpress page automatically comes up when I type in www.maddenstudents.com instead of the forum.

Have you got access to your cPanel? If so why not use a redirect in there. If you don't have cPanel or access then why not drop a redirect in the htaccess file in the public_html folder. Its simple enough to do.

Something like the code below you would be looking for

PHP Code:

# .htaccess main domain to subfolder redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.

# Do not change this line.
RewriteEngine on

# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?maddenstudents.com$ [NC]

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/home/

# Don't change these lines.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /home/$[L]

# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?maddenstudents.com$ [NC]
RewriteRule ^(/)?$ home/index.php [L

if you need any help feel free to PM me

Fudgyyy 04-17-2012 06:04 PM

I should also mention that I have the wordpress page under folder /home

EasyEazy 04-17-2012 09:08 PM

Quote:

Originally Posted by Fudgyyy (Post 2320979)
I should also mention that I have the wordpress page under folder /home

yeah thats fine. In the code i provided i noticed you had it in that directory.

Have you dropped this code into your htacces file?


All times are GMT. The time now is 05:53 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.01924 seconds
  • Memory Usage 1,729KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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