× Here you can get community support related to ReDJ.

redj to non existing page

More
8 years 3 months ago - 8 years 3 months ago #5207 by tasso
Last edit: 8 years 3 months ago by tasso.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago - 8 years 3 months ago #5209 by admin
Replied by admin on topic redj to non existing page
Hi,
add this at the end of your .htaccess file:
ErrorDocument 404 /

The ReDJ rule is:
From URL: ^/ekoredirect\.php\?id=THISCODECANCHANGEALFANUM$
To URL: {scheme}://{siteurl}/index.php?option=com_chronoforms5&chronoform=ekoredirect?id=THISCODECANCHANGEALFANUM
Request only: true (checked)

Kind regards
Luigi
Last edit: 8 years 3 months ago by admin.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #5210 by tasso
Replied by tasso on topic redj to non existing page
i try but don't work.
My web server is nginx but i add in the config file for nginx (for joomla)

location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}

all the normal joomla redirect works.
Any idea ?

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #5211 by admin
Replied by admin on topic redj to non existing page
For nginx the directive should be:
error_page   404  =  /;

The "trick" is to instruct the web server to NOT manage the 404 directly, but to pass control to Joomla.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #5221 by tasso
Replied by tasso on topic redj to non existing page
Thanks to suggestion, i found the problem. I write the solution for other peple maybe need this.

i use nginx but with php-fpm (fast CGI) and the proper config for the nginx file is:

location / {
error_page 404 = /;
try_files $uri $uri/ /index.php?q=$request_uri;

}

location ~ \.php$ {
fastcgi_intercept_errors on;
error_page 404 = /;

}

Thanks for wonderful support

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #5222 by admin
Replied by admin on topic redj to non existing page
Thanks to you for reporting here.

Please Log in or Create an account to join the conversation.

Time to create page: 0.142 seconds