Implications of running xenforo from a subdirectory (ie. /community or /forums )

I wonder if
#RewriteBase /xenforo
to
RewriteBase /community
(remove the # and change to community).
would work.

This is what I have.
Code:
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ http://ueg-immunity.com/ [R=301,L]
 
public_html - I think of that folder as the "Root" directory.
I'm still trying to figure out how you can FTP to "No Folder" .... there has to be a folder somewhere ! :)

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
 
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ http://ueg-immunity.com/ [R=301,L]
 
#If you are having problems with the rewrite rules, remove the "#" from the
#line that begins "RewriteBase" below. You will also have to change the path
#of the rewrite to reflect the path to your XenForo installation.
#RewriteBase /xenforo
 
#This line may be needed to enable WebDAV editing with PHP as a CGI.
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
 
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>

You might also want to put the 2 lines of code directly under RewriteEngine On
 
Isn't one of the problems with installing your forums into a sub directory that any addons you have will also assume the sub directory.

For example say you install the UserAlbums mod.

If your forums are in the root you get domain/useralbums/
If your forums are in community you would get domain/community/useralbums/

However you would like to have your useralbums act like a separate gallery section on your whole site...likewise say a separate video library etc...with the forums in a sub directory all addons would hang off that sub directory instead of looking like a separate section of your site unless they were stand alone apps but then you have integration issues.

You could do some fancy rewrites but there lays more issues.

Am I correct in this about addons?
 
Rather than playing with .htaccess, one can always create a quick and dirty index.html file in the root directory that also redirects.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Redirecting to forum</title>
<meta http-equiv="REFRESH" content="0;http://www.ueg-immunity.com/community/index.php "></HEAD>
<BODY>
Redirecting you to the forums...
</BODY>
</HTML>
 
Top Bottom