|
|
Joined: Mar 2000
Posts: 528
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 528 |
OK, just curious really.
When going to ubbdev.com - you redirect to the Entrance page.
You guys using an .htaccess file for that, or a blank index with a META refresh/forward set to zero ?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
An index.php file which looks like this: <br /><?<br />header("location: https://ubbdev.com/forum/index.php");<br />?><br />
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
I use the same thing, only the index.php file that I have in my Threads directory is an index script that I wrote.
*Dal makes a mental note to release it as a mod*
|
|
|
|
Joined: Nov 2002
Posts: 554
Code Monkey
|
Code Monkey
Joined: Nov 2002
Posts: 554 |
what is the purpose of these methods?
|
|
|
|
Joined: Mar 2000
Posts: 528
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 528 |
Chaos - they allow you to place the actual "content" anywhere on your site, yet still utilize only "link.com" as the URL to get there.
Basically it is an immediate auto-forwarder...not necessary but very helpful in a few things I have done in the past.
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
[]ChAoS said: what is the purpose of these methods? [/]
By redirecting to the Threads directory I can take full advantage of the ubbt.inc.php file (the Threads library). I could do it from web root, but sometimes certain path variable don't work as expected unless you are running a script from the threads directory...
|
|
|
|
Joined: Nov 2002
Posts: 554
Code Monkey
|
Code Monkey
Joined: Nov 2002
Posts: 554 |
so the ubbthreads directory path is something like this?
/forum/ubbthreads
What would happen if the actual index.php were contained in the threads directory itself?
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
My actual index.php file is in my threads directory...
Web root: index.php is a redirect to ubbthreads/index.php which is my actual index page...
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Yeah, ours is too. It's not complicated - just a different way of doing a META REFRESH. Our files are in www.ubbdev.com/forum just like you see in the browser address bar. We put our IIP at /forum/index.php When they visit https://ubbdev.com/index.php we just redirect them to IIP as we no longer use a static entrance page.
|
|
|
|
Joined: Mar 2000
Posts: 528
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 528 |
The PHP header (as noted) is faster than a META refresh (for anyone reading and wondering).
In terms of speed, either .htaccess or the php code above will be speediest, with META refresh after that.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|