Redirecting a landing page

Hectic

Executive Member
Joined
Sep 15, 2009
Messages
6,269
Reaction score
5
Location
Kirkwood, EC
I wonder if someone can help me please.

I have a domain which I use to test several packages or setup.

I mainly use it for forum software setups like smf, etc.

Every now and then I delete all folders and files and install a new setup.
Normally the install defaults to a folder. In this instance, it is "smf"

In other words typing the domain name would then take me to a page with "Index of/ smf
If I click on smf it will take me to the front page of the SMF installation.

I normally ask my hosting company to help to redirect the page so that my domain name would not end up on the "Index of" page, but go to the actual front page.

I would prefer to do this step myself from now on, if possible.

I've tried to Google, but haven't been very success full.

I thought I could just download the Index.php file in the Public_html / smf folder, but I could not see a forum link that I could change.

Help would be appreciated.

Thank you.
 
Either move all the files and folders from smf up one directory (into your root, public_html folder), or if the installation allows, set the install path to "/" (root path). That way you about redirects
 
Add a redirect in the index.html page
I will look for the file. Can't recall that I saw it in the SMF folder. Might be in one of the other folders.

Either move all the files and folders from smf up one directory (into your root, public_html folder), or if the installation allows, set the install path to "/" (root path). That way you about redirects
I can change the install path, but apparently it is recommended to install SMF to a folder, especially when other packages are installed alongside it.
 
What is your hosting setup?

Best way to do this with Apache would be using a virtualhost.

A quick hack would be to create an index.php file in your root directory and just do a PHP redirect:

Code:
<?php
header("Location: http://mydomain.com/smf/index.php");
die();
?>

That is a super ugly way of doing it though.
 
What is your hosting setup?

Best way to do this with Apache would be using a virtualhost.

A quick hack would be to create an index.php file in your root directory and just do a PHP redirect:

Code:

That is a super ugly way of doing it though.
Well, I'm a serious noob, but it is hosted on a shared Linux server.

Not sure if that is what you mean?

Like I said, I clear the setup regularly, so ugly does not matter to me. It is only a test site.
 
Last edited:
Well, I'm a serious noob, but it is hosted on a shared Linux server.

Not sure if that is what you mean?

Like I said, I clear the setup regularly, so ugly does not matter to me. It is only a test site.

Okay, well then you're probably using cpanel.

Just create a redirect there under Domains -> Redirects. It's pretty easy to follow from there.
 
Okay, well then you're probably using cpanel.

Just create a redirect there under Domains -> Redirects. It's pretty easy to follow from there.
Is there any way that I can zip you and install you as a package on my pc!
You always seem to have the answers I'm looking for.
:)

Thank you to everyone that provided feedback.
i really appreciate it.
:)
 
Top
Sign up to the MyBroadband newsletter
X