• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

/index.php

#1
Just launched New York Sports Town yesterday. Uploaded the files into the public_html folder on my server.

Currently, the link that works is:

www.newyorksportstown.com/index.php

www.newyorksportstown.com gives me a blank page.

Currently it is just the forum, but in the future I suspect there will be more content on the "main" page and the forum will reside under /forum or something similar.

How do I maintain simply www.newyorksportstown.com to direct to the forum for now without using index.php?
 

Brogan

XenForo moderator
Staff member
#2
Your forum is currently installed in the root so should automatically work.

Do you have any index files in the root in addition to the XenForo files?
 

Brogan

XenForo moderator
Staff member
#6
It sounds like your server isn't configured for or doesn't support FURLs, but the blank page from the root URL indicates another configuration issue.
 

Tracy Perry

Well-known member
#8
I will check the details when I get home - I have it hosted using hostgator if that helps.
Make sure you haven't modified your htaccess. By default, HostGator has enabled
Code:
DirectoryIndex index.html index.shtml index.php default.html home.html
in the .htaccess.
If you deleted .htaccess, then it reappears as an empty file. This info was obtained from http://support.hostgator.com/articles/specialized-help/technical/apache-htaccess/-htaccess-guidance.
Easiest thing to do (and to enable friendly URL's) is to use the example one provided with xenForo. Just rename it .htaccess.
 
#9
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
RewriteEngine On

# 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>
 
#13
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
RewriteEngine On

# 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 /

# 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>
 

Brogan

XenForo moderator
Staff member
#17
Make sure your ftp client is showing hidden files.

There should be an .htaccess file in the root with that content.

If there isn't, create it.