/index.php

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?
 
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?
 
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.
 
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.
 
# 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>
 
# 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>
 
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.
 
Just create the .htaccess file using the contents of htaccess.txt and upload it to your root.
 
Last edited:
Top Bottom