SimplePortal
Support => English Support => Topic started 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)
-
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.
-
hmm, im afraid it will make my other mod cant work.
-
Other mod? What mod?
-
why not?
use this.
-
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.
-
You can use it from any directory. Make sure you set the path to SSI correctly.
-
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
-
Just install SMF into root dir ( /public_html )
Then just install Simple Portal & anything else as you normally would.
-
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)
-
An even easier way...just setup a permanent redirect pointing to the portal page.
-
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
-
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.
<?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.
-
* SPortal1-1.php - Error Page.
Replace with,
SPortal2.php - Works Perfectly.
LHVWB, you are really great. :applause:
-
hmm, nvermind, ive redirected my url to /forum instead, so it wont be problem :) thx for all your help
-
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. :)
-
* SPortal1-1.php - Error Page.
Replace with,
SPortal2.php - Works Perfectly.
LHVWB, you are really great. :applause:
yeah thats right
-
Marking solved.
-
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.
-
Not really. It maybe possible but would be hard and extremely server unfriendly.
-
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. :)
-
A php file with these codes may do it:
<?
echo file_get_contents("http://domain1.com/where/portal/is");
?>