403 Forbidden

Andrew

Well-known member
Me and my users (who use the FB login) recieve a 403 Forbidden error if we log out. When we visit the website again, it auto login, and then the error is shown.

Error:

403 Forbidden

You don't have permission to access /community/index.php on this server.

Apache mod_fcgid/2.3.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.ultimategamingcentre.com Port 80

When this page shows up, it has some kind of weird url. Here is the url it returns.

Code:
http://www.ultimategamingcentre.com/community/index.php?register/facebook&t=118311141564905|2.2kiv4PVVtsp1khJrQHgqZw__.3600.1300762800-1493665799|vAzTS7zAu1KxVoRdCDsazav9kMo&redirect=http://www.ultimategamingcentre.com/community/portal/

My guess is it has something to do with my .htaccess file.

Here is my .htaccess syntax

DirectoryIndex index.php

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

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data|js|styles|install) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>

Note the syntax in the top portion (not originally added in the xenforo files).

DirectoryIndex index.php

I have had seo problems which is why I added that line (see here). If I don't add the "DirectoryIndex index.php" line, it shows my directory listing.

This is my xenforo root:
public_html/community/

Mods/Plugins Installed:
XenPorta (portal by jaxel)

Please help,
Andrew
 
Looking a the URL returned, the problem seems related to the portal add-on.

Code:
redirect=http://www.ultimategamingcentre.com/community/portal/

Why did you add the DirectoryIndex entry?
That shouldn't be required as the index.php file should be loaded automatically.

If it isn't then that suggests your server isn't configured correctly.
 
Looking a the URL returned, the problem seems related to the portal add-on.

Code:
redirect=http://www.ultimategamingcentre.com/community/portal/

Why did you add the DirectoryIndex entry?
That shouldn't be required as the index.php file should be loaded automatically.

If it isn't then that suggests your server isn't configured correctly.

I get the same error when it auto logs-in from the "forum index/listing" page.
Code:
http://www.ultimategamingcentre.com/community/index.php?register/facebook&t=118311141564905|2.2kiv4PVVtsp1khJrQHgqZw__.3600.1300762800-1493665799|vAzTS7zAu1KxVoRdCDsazav9kMo&redirect=http%3A//www.ultimategamingcentre.com/community/

To test again, Members page:
Code:
http://www.ultimategamingcentre.com/community/index.php?register/facebook&t=118311141564905|2.2kiv4PVVtsp1khJrQHgqZw__.3600.1300762800-1493665799|vAzTS7zAu1KxVoRdCDsazav9kMo&redirect=http%3A//www.ultimategamingcentre.com/community/members/


I put "http://www.ultimategamingcentre.com/community/" for the canvas url (because my forum is not installed in my root directory) is that wrong (the /community/ part)?
 
Top Bottom