Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Force www. (without .htaccess) Details »»
Force www. (without .htaccess)
Version: 1.0, by 1Unreal 1Unreal is offline
Developer Last Online: Aug 2020 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 09-09-2009 Last Update: Never Installs: 123
Uses Plugins
 
No support by the author.

This mod will redirect users who do not have the www. subdomain to one that does. This helps with SEO as it stops duplicate content also fixes some logging in issues. Another upside is that this is done with pure PHP so you don't need to mess about with .htaccess.

There are no options, just upload it and it will redirect the users straight away.

Please post any issues and don't forget to click install!

Download Now

File Type: xml product-forcewww.xml (1.4 KB, 738 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
TTayfun

Comments
  #42  
Old 03-13-2010, 02:02 PM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working in vbb4.x

Great!!
Reply With Quote
  #43  
Old 04-04-2010, 11:14 PM
bluecat's Avatar
bluecat bluecat is offline
 
Join Date: Apr 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works on 4.0.2 thanks
Reply With Quote
  #44  
Old 10-22-2010, 08:42 PM
kpmedia's Avatar
kpmedia kpmedia is offline
 
Join Date: Jan 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works even when my .htaccess would not. Excellent!
Just what I was needing. Thanks.
Reply With Quote
  #45  
Old 10-24-2010, 12:45 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MoMan View Post
Fixed this by wrapping the entire plugin code in this conditional:

PHP Code:
$pos strpos($_SERVER['HTTP_HOST'],'*your website IP address here*');
if (
$pos === false)
{*
plugin code here* }
else
{} 
I'm not quite sure where or how to integrate this with the product posted. Would it be possible to write down the whole product code with this modification please?
Reply With Quote
  #46  
Old 10-24-2010, 07:30 PM
EWGF EWGF is offline
 
Join Date: May 2007
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is exactly what I've been looking for. Every single .htaccess that I've tried, couldn't redirect all the following situations:

PHP Code:
mysite.com/forum 
-> 
www.mysite.com/forum

mysite
.com/forum/forumdisplay.php?f=
-> 
www.mysite.com/forum/forumdisplay.php?f=1

mysite
.com/forum/showthread.php?t=12345&page=
-> 
www.mysite.com/forum/showthread.php?t=12345&page=
Reply With Quote
  #47  
Old 01-06-2011, 04:04 PM
erel34's Avatar
erel34 erel34 is offline
 
Join Date: Dec 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks. Installed!
Reply With Quote
  #48  
Old 02-08-2011, 04:35 PM
Guest20210129
Guest
 
Posts: n/a
Default

thanks
Reply With Quote
  #49  
Old 02-08-2011, 11:55 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't work with https. It forces http as well. How can I solve this?
Reply With Quote
  #50  
Old 02-26-2011, 01:52 PM
EWGF EWGF is offline
 
Join Date: May 2007
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the plugin by adding a "s" after every "http" in the plugin
Reply With Quote
  #51  
Old 09-06-2011, 02:18 PM
Aexo's Avatar
Aexo Aexo is offline
 
Join Date: Sep 2008
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working perfectly in vbulletin 4!!!
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 11:30 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.21824 seconds
  • Memory Usage 2,325KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (11)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
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete