The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Redirect Question
Hi,
I have a question. We are developing our forum but we want to redirect all visitors to a certain page until we launch our site. Oke what we want is this: When someone comes to www.site.com he has to be redirected to www.site.com/blabla/ but the normal admins should be able to access the normal site. We dont wanna do it through ip adresses since one of us has dynamic ips We also have vbseo installed. So we dont want anyone to see any of our sites pages only the redirectionpage. Can you tell me how we can manage this since we have something up and running now but it doesnt work flawlessly. Please help us! |
#2
|
|||
|
|||
.htaccess would be the way to go. Another way you could do it is by having a index.php that checks your User Agent (there are firefox plugins that let you spoof your user agent to be anything) to be "XXX", and if not, it redirects you to another page.
So you could have something like PHP Code:
Safari/Firefox Configuration User Agent Spoof: http://www.rubyrobot.org/article/spo...ari-or-firefox |
#3
|
|||
|
|||
Can you also explain me more about the htaccess way please?
|
#4
|
||||
|
||||
You should just use vBulletin plugins to redirect, as it does not require spoofing UAs, etc. .htaccess redirects do not know who you are (vBulletin user-wise).
|
#5
|
|||
|
|||
Quote:
Code:
<if condition="$bbuserinfo['usergroupid'] == X"> <meta HTTP-EQUIV="REFRESH" content="0; url=www.site.com/blabla"> </if> Alot easier than .htaccess editing Hope that helps |
#6
|
||||
|
||||
You probably want (note the operator):
Code:
<if condition="$bbuserinfo['usergroupid'] != 6"> <meta http-equiv="refresh" content="0; url=www.site.com/blabla"> </if> |
#7
|
|||
|
|||
And how you want to log in?
|
#8
|
||||
|
||||
Now, that, is a good question.
|
#9
|
|||
|
|||
You could take this: https://vborg.vbsupport.ru/showthread.php?t=156992 and modify it a little bit
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|