vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Redirect issues (I think)? (https://vborg.vbsupport.ru/showthread.php?t=318580)

dj83 05-07-2015 02:35 PM

Redirect issues (I think)?
 
Hello,

I changed my url yesterday and now i'm having issues. For example when I login from url http://www.837271.com it keeps me login and I can view the pages fine but when I got to just http://837271.com it asks me to login again on all pages.

Please help because my members are having problems.

Thanks

RichieBoy67 05-08-2015 04:56 AM

You need something like this. It redirects non www to www.

PHP Code:

RewriteEngine on
RewriteCond 
%{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC] 

You need to either redirect www to non www or the other way around. Make sure you have your domain set in Vbulletin to the one you wish to use. I always use the non www myself but up to you.

dj83 05-08-2015 01:40 PM

Hi,

Which file do I need to add this to?

squidsk 05-08-2015 03:09 PM

Quote:

Originally Posted by dj83 (Post 2545118)
Hi,

Which file do I need to add this to?

Your .htaccess file.

RichieBoy67 05-08-2015 11:03 PM

Yes, in your root folder if you do not have one then add

.htaccess

If you do change the code I posted to your domain and just add it.


All times are GMT. The time now is 09:35 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.01042 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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