Page 1 of 1

Making it the main page of site

Posted: 13. March 2009 04:12
by InternetMafia
Your Portal Version: 1.0.2
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://deviant-mafia.com/forums/index.php

What have you done before the problem was there?
Problem does not exist at this point.

What have you already tryed to solve the problem?
Nothing

Description and Message
I am trying to make the portal show in place of the index of my main site. I am fairly oblivious on how to make this happen.

For example, my portal address is http://www.deviant-mafia.com/portal/index.php

I would like the portal to show when a user types in http://www.deviant-mafia.com

Thanks in advance for any help.

Re: Making it the main page of site

Posted: 13. March 2009 04:46
by mjcp
I successfully use a refresh command in my index.html page

Refresh eg.


<META HTTP-EQUIV="REFRESH" CONTENT="0;URL= http://www.deviant-mafia.com/portal/index.php">


Specifies a delay in seconds before the browser automatically reloads the document. Optionally, specifies an alternative URL to load, making this command useful for redirecting browsers to other pages.

The 0 in the above example redirects visitors to the forum with no visible delay and your index.html page should not show on their screen. Alternatively you could insert a number of seconds to display your index.html page before redirecting to the forum.

eg.

<META HTTP-EQUIV="REFRESH" CONTENT="15;URL= http://www.deviant-mafia.com/portal/index.php">

Should add a 15 second delay, displaying your sites main page before redirecting to the forum portal
This is sometimes used with a brief "you are being redirected to our site please be patient" in case the page loads slow and often there is also a Link to the portal on the page in case there is a problem with the actual redirect process.

eg.

Please wait while you are redirected to our site. If the page doesn't load automatically please click the link below
http://www.deviant-mafia.com/portal/index.php

Re: Making it the main page of site

Posted: 13. March 2009 23:35
by Marman
I put a redirect in my .htaccess, yours would be something like this (use full line)

Redirect 301 /index.html http://www.deviant-mafia.com/portal/index.php

Back up the file first, hope it helps...

Example can be found at link below, compare link below with the link of the page your taken to.

http://www.sadisticoldbastards.com

Re: Making it the main page of site

Posted: 14. March 2009 02:11
by iamdarren
hi what should the whole htaccess file look like as mine shows this at the moment

Code: Select all

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
DirectoryIndex portal.php index.php index.html index.htm
my sites address is www.t-365.co.uk

Thanks

Re: Making it the main page of site

Posted: 14. March 2009 02:19
by Marman
I added the line to the bottom of the file. make sure your adding it to the server root .htaccess, not the one in the phpbb3 folders.

Re: Making it the main page of site

Posted: 14. March 2009 02:27
by iamdarren
its working,

thanks for your help

now looks like this...

Code: Select all

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
DirectoryIndex portal.php index.php index.html index.htm
Redirect 301 /index.html http://www.t-365.co.uk/portal.php