vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - Force www. (without .htaccess) (https://vborg.vbsupport.ru/showthread.php?t=222898)

Entonadoscl 10-19-2009 02:24 AM

thanks ;)

nonspin 10-24-2009 12:13 AM

.. 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

Quantnet 10-24-2009 11:21 AM

How does this mod work without the .htaccess modification? I'm curious.

1Unreal 10-24-2009 12:27 PM

Quote:

Originally Posted by Quantnet (Post 1905539)
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 :)

AdamCap 01-02-2010 07:28 PM

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.

EliasAlucard 01-25-2010 01:15 AM

This plugin is not working properly.

KyleWhitey 01-27-2010 01:19 AM

installed, awesome dude thx

CORSO 02-19-2010 03:18 PM

work with 4.0.2?

MrPHD 02-19-2010 04:19 PM

This mod run on vbulletin 4.0.x version.

ravenfaust 02-21-2010 06:13 PM

not working for me, stays without www.


All times are GMT. The time now is 02:25 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.01115 seconds
  • Memory Usage 1,730KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete