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 03-10-2011, 12:06 PM
grhawkins grhawkins is offline
 
Join Date: Mar 2011
Location: Los Angeles
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Getting rid of /forum.php at the end of URL

I have my main website www.example.com, which is running WordPress (I don't think that affects what I'm trying to do, just giving all the information I can). I set up www.forum.example.com for vbulletin. I also removed the "Home" navigation link on my forum display.

How do I get it so that when a user types in www.forum.example.com it's not going to/displays the www.forum.example.com/content.php page? The same home display shows for both www.forum.example.com and www.forum.example.com/content.php (the one with the sections widget, categories, widget, articles, blog posts, etc.).

***I'd like it so the Home display doesn't show at all and that my /forum.php display shows when myself or a visitors types in www.forum.example.com into the address bar. Currenlty, the /forum.php only shows when I type in www.forum.example.com/forum.php.

This is what I've found so far...
http://www.vbulletin.com/forum/conte...n-subdirectory

http://www.vbulletin.com/docs/html/o...tentmanagement

I don't know what I'm doing wrong, but I can't seem to get it to work.
Reply With Quote
  #2  
Old 03-10-2011, 12:44 PM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you know i see this asked all the time, but when the page is indexed it shows the whole page name htp://www.vbulletin.org/forum/showthread.php?t=260162 like this so what does it matter if it says yoursite.com/forum,php or just yoursite,com
Reply With Quote
  #3  
Old 03-10-2011, 12:46 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by your24hourstore View Post
you know i see this asked all the time, but when the page is indexed it shows the whole page name htp://www.vbulletin.org/forum/showthread.php?t=260162 like this so what does it matter if it says yoursite.com/forum,php or just yoursite,com
it's better in the search engines if you just have one page with content
so if your forum root/ and your root/forum.php have the same content, it's better to redirect it to the home.


To the OP, you should be able to do this with a 301 redirect
Reply With Quote
  #4  
Old 03-10-2011, 12:47 PM
grhawkins grhawkins is offline
 
Join Date: Mar 2011
Location: Los Angeles
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by your24hourstore View Post
you know i see this asked all the time, but when the page is indexed it shows the whole page name htp://www.vbulletin.org/forum/showthread.php?t=260162 like this so what does it matter if it says yoursite.com/forum,php or just yoursite,com
The problem I'm having however, is that when someone types forum.example.com into the address bar it's still showing the forum.example.com/content.php display rather than the /forum.php display.

My forum is located forum.dropbeatsnotbombs.com. When you put that into the address bar it brings up the front page display (or home display whatever it's referred to as), which I don't want showing at all (as you can see..I removed the "Home" link n the navigation bar).
Reply With Quote
  #5  
Old 03-10-2011, 12:49 PM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think your users are going to be amazed or offended by what the url says too them
Reply With Quote
  #6  
Old 03-10-2011, 12:50 PM
grhawkins grhawkins is offline
 
Join Date: Mar 2011
Location: Los Angeles
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brandon Sheley View Post
To the OP, you should be able to do this with a 301 redirect
How would I go about setting a 301 redirect up? Through cpanel?
Reply With Quote
  #7  
Old 03-10-2011, 12:50 PM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by grhawkins View Post
The problem I'm having however, is that when someone types forum.example.com into the address bar it's still showing the forum.example.com/content.php display rather than the /forum.php display.

My forum is located forum.dropbeatsnotbombs.com. When you put that into the address bar it brings up the front page, which I don't want showing at all (as you can see..I removed the "Home" link n the navigation bar).

Oh i see i didn't notice you have it set up that way, its like a sub domain setup

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

I will let Brandon tell you but I think its htaccess redirect is what you will be doing
Reply With Quote
  #8  
Old 03-10-2011, 12:55 PM
grhawkins grhawkins is offline
 
Join Date: Mar 2011
Location: Los Angeles
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by your24hourstore View Post
I will let Brandon tell you but I think its htaccess redirect is what you will be doing
Awesome. If you, Brandon, or anyone else could provide me with instructions on how to set this up with an htaccess redirect that would be amazing!

Sorry for the confusion. I do have it set up as a subdomain.

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

Ughh, that was a lot more simple than expected. It's funny how the most simplest of things can take forever to figure out.

For anyone else who set up their vBulletin on a sub domain like me here's what you need to do:

Using FTP or cpanel File Manager, find the index.php file in the root of where you installed vBulletin. For me, the index.php it was in the "forum" folder I created where all the vBulletin files are.

/home/xxxxxxxx/public_html/forum/index.php
(Please Note: The x's represent the username I use to log into FTP or cpanel.

Now, open up the index.php file and scroll down until you find:
Code:
/**
 * Use the CMS as the default script:
 */

require('content.php');
All you have to do is change content.php to forum.php. Save that bad boy and voila. You can now type www.forum.yourdomain.com...It will show your forum display and it won't have the /forum.php trailing the URL.

I may just be a newbie, but I don't know why I couldn't find that simple answer anywhere. With that, I hope this found other users well as I have been frustrated the past few days trying to figure this out.
Reply With Quote
  #9  
Old 04-28-2012, 08:23 PM
indyonline indyonline is offline
 
Join Date: Aug 2010
Location: Indianapolis
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

easier way would be to comment it out and un-comment forum.php 3 lines below that.
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:33 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.04466 seconds
  • Memory Usage 2,248KB
  • 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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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