Previous Thread
Next Thread
Print Thread
Rate Thread
#281277 10/25/2004 12:40 PM
Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
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 ?

Sponsored Links
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:

Code
<br /><?<br />header("location: https://ubbdev.com/forum/index.php");<br />?><br />




Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
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
Offline
Joined: Nov 2002
Posts: 554
what is the purpose of these methods?

Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
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.

Sponsored Links
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
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
Offline
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
Offline
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
Offline
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.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)