SimplePortal

Support => English Support => Topic started by: lilmina on November 03, 2008, 12:54:48 PM

Title: How to make Simpleportal page appear in root directory (as web front page)
Post by: lilmina on November 03, 2008, 12:54:48 PM
You see.. my forum's already installed to /forum directory... but i want my SimplePortal frontpage to appear inside root directory instead of appearing inside /forum folder. Can anyone help me for it ? Thank u in advanced (i'll click your google ads btw)
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: ccbtimewiz on November 03, 2008, 02:50:38 PM
Welcome to SP.net.

Not really an easy way to do this if you just want the SP page on a different directory.

Assuming you're on Apache, my suggestion is to use the ModRewrite function in a .htaccess file and then perhaps rewrite the /forum URL to the main forum URL, while omitting the * so only that page is affected.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: lilmina on November 03, 2008, 07:13:58 PM
hmm, im afraid it will make my other mod cant work.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: ccbtimewiz on November 03, 2008, 07:14:43 PM
Other mod? What mod?
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: asude on November 06, 2008, 08:19:56 AM
why not?

use this.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: ccbtimewiz on November 06, 2008, 11:10:28 AM
why not?

use this.

That wouldn't do anything as the directory where the forum is located is higher than the directory of the original folder. Meaning SSI cannot be accessed in that method. Likewise using that file name wouldn't default-out the web browser.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: [SiNaN] on November 10, 2008, 06:16:11 AM
You can use it from any directory. Make sure you set the path to SSI correctly.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: hot rides on December 05, 2008, 04:26:26 PM
Welcome to SP.net.

Not really an easy way to do this if you just want the SP page on a different directory.

Assuming you're on Apache, my suggestion is to use the ModRewrite function in a .htaccess file and then perhaps rewrite the /forum URL to the main forum URL, while omitting the * so only that page is affected.
how would I go about this, I have no clue what to put into the .htaccess file
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: Simone on December 05, 2008, 05:20:45 PM
Just install SMF into root dir ( /public_html )
Then just install Simple Portal & anything else as you normally would.

Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: Jade Elizabeth on December 05, 2008, 05:37:17 PM
I can help you move your forum from /forum to the root.

Just move the files. Run repair settings.
What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663)
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: Saviour on December 05, 2008, 07:20:30 PM
An even easier way...just setup a permanent redirect pointing to the portal page.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: hot rides on December 07, 2008, 10:29:48 PM
I can help you move your forum from /forum to the root.

Just move the files. Run repair settings.
What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663)
not an option for some like me, have to many custom theme edits and hacks that would die with a directory change and I dont remember them all. I intend on fixing it one day with a new smf 2 install
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: Nathaniel on December 08, 2008, 01:20:27 AM
Make a file called 'index.php' in your main directory and put this code into it. That should display the portal properly in that directory.

Code: [Select]
<?php

require_once(dirname(__FILE__) . '/forum/SSI.php');
$ssi_on_error_method true;

require_once(
$sourcedir '/SPortal1-1.php');

sportal();

obExit(true);

?>

Note: That code is the code posted by asude, it should work fine.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: Sudhakar on December 08, 2008, 01:30:39 PM
* SPortal1-1.php - Error Page.

Replace with,

SPortal2.php - Works Perfectly.

LHVWB, you are really great.  :applause:
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: lilmina on December 10, 2008, 07:45:21 PM
hmm, nvermind, ive redirected my url to /forum instead, so it wont be problem :) thx for all your help
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: Sudhakar on December 11, 2008, 02:49:15 PM
hmm, nvermind, ive redirected my url to /forum instead, so it wont be problem :) thx for all your help

Make Sure to if you redirect , you are missing an page index on google.

If you add a above mentioned way , you will still get placed in google and other search engines and you could get more response.

So redirecting is just a temporary solution.  :)
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: QertysXasder on December 13, 2008, 03:37:47 AM
* SPortal1-1.php - Error Page.

Replace with,

SPortal2.php - Works Perfectly.

LHVWB, you are really great.  :applause:

yeah thats right
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: [SiNaN] on December 20, 2008, 07:04:58 AM
Marking solved.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: Sudhakar on December 21, 2008, 04:43:40 AM
Hi Team,

Thanks for the updates, sure this post is solved.

I have one more additional question,

Could i use the same come to domain2.com instead of domain1.com/forum is.

My forum is at domain1.com/forum and i want to display the same simple page portal page at domain2.com

Is that possible. Any suggestion.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: [SiNaN] on December 21, 2008, 05:26:04 AM
Not really. It maybe possible but would be hard and extremely server unfriendly.
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: Sudhakar on December 25, 2008, 06:56:22 PM
Not really. It maybe possible but would be hard and extremely server unfriendly.

Could we have a try with the codes you say.
Just a try or we could drop at any moment.  :)
Title: Re: How to make Simpleportal page appear in root directory (as web front page)
Post by: [SiNaN] on January 01, 2009, 08:27:38 AM
A php file with these codes may do it:

Code: [Select]
<?
echo file_get_contents("http://domain1.com/where/portal/is");
?>
SimplePortal 2.3.8 © 2008-2024, SimplePortal