url problems: index.php?/ vs index.php/

Author Message

Fernando Marinò

Saturday 05 September 2009 3:07:02 am

hi all,
I have this site:
www.animangaplus.it/beta
here all across the site it uses the notation with the question mark after the index.php file:
http://www.animangaplus.it/beta/index.php<b>?</b>/ita/News/

but in other section of the site, like the login module or the generated rss it uses links without the question mark, consequently this links does not works, so its not possible to use rss and I have to type the address of the administration area due to this behaviour in the login module. It is a bug? or a things that can be fixed with some settings?

why this differences in the composition of the url?

Gaetano Giunta

Saturday 05 September 2009 4:34:13 am

The fact that the question mark is used in the generated urls depends on whether you are using php as an Apache module or as cgi/fastcgi.

In the latter case, eZPublish assumes that your server cannot do rewrite of the incoming urls, so puts the path to the content in the query string.

The fact that some urls get generated with the question mark and some without is very strange - it might happen if you have recently changed your eZPublish configuration and did not clear the caches / regenerate url aliases.
By default about the only url that always uses the query string is the one for the search module.

You can check out / try to alter the settings in site.ini in the override dir to get a proper setup: ForceVirtualHost, MatchOrder

Principal Consultant International Business
Member of the Community Project Board

Fernando Marinò

Saturday 05 September 2009 5:56:47 am

I don't really get it. You say that it depends on the mod_rewrite of apache, so thinking about it, the first installation of ezp was done on a server that has it enabled, then has been moved on a server that it has not. Certainly is not a problem of cache.

In site.ini I didn't override the ForceVirtualHost option, so in the root site.ini is set to false. The same goes for the MatchOrder option, not overridden and set to uri;host;port.

Fernando Marinò

Monday 07 September 2009 12:48:19 am

I'm sorted somehow the problem of the login module, but the wrong address generated by the rss module remains. I'm start thinking that it could be a bug.

Łukasz Serwatka

Monday 07 September 2009 12:57:11 am

Hi,

This topic might be helpful:
http://ez.no/developer/forum/install_configuration/possible_to_remove_path_to_ez_index_php_under_fastcgi/re_possible_to_remove_path_to_ez_index_php_u__2

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.