Search

Hello, I have this strange behaviour I cannot solve: if I call a page withouth the trailing slash, I get redirected to a path string, which reveals btw some server information (of less importance).

For example, if I load:

http://www.mysite.it/mysection/page/302

Instead of

http://www.mysite.it/mysection/page/302/

The browser gets redirected to:

http://www.mysite.it/var/www/mysite.it/web/mysection/page/302/

I did not change the htaccess in any way, so how can I fix this?
Thanks!

Is there some misconfiguration in the .htaccess file or some strange settings in the url_router ? Maybe you can compare your .htacess file with one from a fresh symphony install?

Well, I managed to get the misbehavior fixed adding this line of code to the .htaccess file:

RewriteRule ^(([a-z0-9-]+/)*[a-z0-9-]+)$ $1/ [NC,R=301,L]

Thanks

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details