News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Placing Forum in Folder

Started by nathan89, February 01, 2009, 06:43:35 PM

Previous topic - Next topic

nathan89

I would like to place my forum in a folder called (community) which works fine, however when some access the root of my site of course no page is displayed.  Without doing a redirect how could I get simple portal do display at my sites root.

Forum is located (http://crohnssociety.com/community)

Would like simple portal to display at (http://crohnssociety.com/index.php)

Galaxy Computers

When you use your FTP client create a sub folder called community then upload your forum files within that folder.
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

nathan89

I understand that in fact I have already done it, I just want my simple portal to display at the root.

aldo

SimplePortal is part of your SMF forum, so you would need your whole SMF installation to be in your root directory, as you cannot have SimplePortal in a different directory as the forum itself.

nathan89

Is there a way to rewrite the index.php in .htaccess so that it will redirect to /community/index.php  ?

nathan89

I used the following in my .htaccess

RewriteEngine on
RewriteCond %{HTTP_HOST} ^crohnssociety.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.crohnssociety.com$
RewriteRule ^/?$ "http\:\/\/crohnssociety\.com\/community" [R=301,L]


Is this an acceptable practice and will I still get indexed in the search engines as (http://crohnssociety.com) and not (http://crohnssociety.com/community)


Tyrsson

If you don't already have a index.php file in your root directory


<?php
header
("Location:http://mysite.com/smf");
?>


Save this as index.php and upload it to the root of your hosting space.
PM at your own risk, some I answer, if they are interesting, some I ignore.

nathan89


Tyrsson

PM at your own risk, some I answer, if they are interesting, some I ignore.

Advertisement: