ElkArte Community

Project Support => Support => Topic started by: mozard on February 27, 2016, 12:26:33 am

Title: Problem with forum
Post by: mozard on February 27, 2016, 12:26:33 am
hi, thanks for this forum. It is new for me using this and have 2 major problems
1. I can't use email validation for registration, already set it to smpt or php and no email are sent
2. Every time I access my site for the first time there is always shown like image on my attachment

it would be glad if I have some help, thank you

Sorry for my english, not so good with that, I'm from Indonesia so english is not my forte

Addition: my site is www.endejaya.com
Title: Re: Problem with forum
Post by: emanuele on February 27, 2016, 07:18:05 am
Hi mozard and welcome to elk.net. :)

This page is usually the result of some Apache configuration setting, most likely mod_security.

Doing some tests I can see that accessing http://endejaya.com/index.php gives you the "forbidden" error, but accessing http://www.endejaya.com/index.php the error doesn't appear.
The difference is the "www", apparently you configured your ElkArte to have the "www" in the URL.

Testing a bit more, it looks like the problem arises when both PHPSESSID and wwwRedirect are present in the URL, for example:
http://www.endejaya.com/index.php?PHPSESSID=f3f2b9ae9cc1125b1a7ff65cb1d304c7&board=1.0;wwwRedirect
you can trim it down to a simple URL I'm not going to post here that basically crashes (at least I'm not able to get a direct response any more, I have to go through a proxy now).

What I would do is:
1) set up htaccess so that requests are sent to either the "www" version or the "non-www" version of the site, this has the advantage of not letting Elk-redirect to take place[1],
2) contact my host to understand if it is possible to fix the mod_security issue and/or disable mod_security entirely.
If ElkArte is configured to use the "www" version, and the forum is accessed through the "non-www", then it tries to redirect to the "www" version to avoid content duplication.
Title: Re: Problem with forum
Post by: mozard on February 28, 2016, 08:39:33 am
Thanks for your help .. yes I realized that I put it on wrong place after I post it >.<

Yes, I set it to use "www" when I installed it using Softaculous, and now I realize it that it is not resulting good :(

Will try it tomorrow when I have access to cpanel

at last this forum cms is great, very light, fast loading!
Title: Re: Problem with forum
Post by: emanuele on February 28, 2016, 09:32:08 am
It can be fixed at any time from Elk admin panel, once you decide which one you want to pick, of course. ;D