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
  #32  
Old 10-19-2009, 02:24 AM
Entonadoscl's Avatar
Entonadoscl Entonadoscl is offline
 
Join Date: Aug 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #33  
Old 10-24-2009, 12:13 AM
nonspin nonspin is offline
 
Join Date: May 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

.. just for ticks and for those who prefer the proper .htaccess method

Code:
# Redirect adding leading www.to domain or any subdomain if missing
# RewriteEngine On  
RewriteCond %{HTTP_HOST} !^www.. 
Rewriterule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Remove "#" from RewriteEngine On if not present
Reply With Quote
  #34  
Old 10-24-2009, 11:21 AM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How does this mod work without the .htaccess modification? I'm curious.
Reply With Quote
  #35  
Old 10-24-2009, 12:27 PM
1Unreal 1Unreal is offline
 
Join Date: Jul 2008
Location: London
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Quantnet View Post
How does this mod work without the .htaccess modification? I'm curious.
Well using PHP you can get the current URL of a page and you can redirect. Simple
Reply With Quote
  #36  
Old 01-02-2010, 07:28 PM
AdamCap AdamCap is offline
 
Join Date: Dec 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was a little worried about installing this after reading some of the comments with troubles...but it works perfectly for me! I couldn't get my .htaccess to redirect, so this is awesome.

I think my .htaccess redirect problems might have have something to do with wordpress. It's installed in my root and automatically redirects all wordpress pages to www, so for some reasons adding the code to redirect in htaccess wouldn't redirect vBulletin which is in a folder off the root.
Reply With Quote
  #37  
Old 01-25-2010, 01:15 AM
EliasAlucard's Avatar
EliasAlucard EliasAlucard is offline
 
Join Date: Nov 2009
Location: Sweden
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This plugin is not working properly.
Reply With Quote
  #38  
Old 01-27-2010, 01:19 AM
KyleWhitey KyleWhitey is offline
 
Join Date: Jan 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed, awesome dude thx
Reply With Quote
  #39  
Old 02-19-2010, 03:18 PM
CORSO CORSO is offline
 
Join Date: Aug 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work with 4.0.2?
Reply With Quote
  #40  
Old 02-19-2010, 04:19 PM
MrPHD's Avatar
MrPHD MrPHD is offline
 
Join Date: Feb 2006
Location: Portugal
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod run on vbulletin 4.0.x version.
Reply With Quote
  #41  
Old 02-21-2010, 06:13 PM
ravenfaust ravenfaust is offline
 
Join Date: Aug 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working for me, stays without www.
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:20 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.05147 seconds
  • Memory Usage 2,323KB
  • 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
  • (1)bbcode_code
  • (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
  • (4)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
  • (11)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