"question_mark_in_urls" needs optimization. #362

Open
opened 2026-10-04 23:54:24 +02:00 by adam · 3 comments
Owner

Does a good job in general but completely changes the url stucture of pictures for reasons unknown.

/picture?/picture-name/category/category-name
becomes
/index/category/picture/picture-name/category/category-name

Does a good job in general but completely changes the url stucture of pictures for reasons unknown. /picture?/picture-name/category/category-name becomes /index/category/picture/picture-name/category/category-name <!-- github-sync-id:114395109 -->
Author
Owner

Works like a charm on various standard Apache / php configurations. Do you have an online link to start with?

Works like a charm on various standard Apache / php configurations. Do you have an online link to start with? <!-- github-comment-id:152714203 -->
Author
Owner

Hello!
Sitelink: http://redesign2.lolhentai.net/
I'm using Nginx with the following config: http://pastebin.com/yfWCzcK3

As you can see, the css and javascript of a picture is also not displaying good, I've heard that this is a problem with the relative path of the css and javascript, changing

$conf['data_location'] = PHPWG_ROOT_PATH.'_data/';

to

$conf['data_location'] = PHPWG_ROOT_PATH.'/_data/'; (Added slash)

Which works but causes some plugins to bug, like the upload community plugin.

Back to the url structure problem.

When you will try to open a picture it will for example go to:

http://redesign2.lolhentai.net/index/category/picture/20621-lusciousnet_lusciousnet_2014_07_06_league_of_loli_tastingx_2068449359/category/annie

Even though it normally should go to

http://redesign2.lolhentai.net/picture/20621-lusciousnet_lusciousnet_2014_07_06_league_of_loli_tastingx_2068449359

I have no idea why it is redirecting with the wrong structure.

Thanks!

Hello! Sitelink: http://redesign2.lolhentai.net/ I'm using Nginx with the following config: http://pastebin.com/yfWCzcK3 As you can see, the css and javascript of a picture is also not displaying good, I've heard that this is a problem with the relative path of the css and javascript, changing $conf['data_location'] = PHPWG_ROOT_PATH.'_data/'; to $conf['data_location'] = PHPWG_ROOT_PATH.'/_data/'; (Added slash) Which works but causes some plugins to bug, like the upload community plugin. Back to the url structure problem. When you will try to open a picture it will for example go to: http://redesign2.lolhentai.net/index/category/picture/20621-lusciousnet_lusciousnet_2014_07_06_league_of_loli_tastingx_2068449359/category/annie Even though it normally should go to http://redesign2.lolhentai.net/picture/20621-lusciousnet_lusciousnet_2014_07_06_league_of_loli_tastingx_2068449359 I have no idea why it is redirecting with the wrong structure. Thanks! <!-- github-comment-id:152796819 -->
Author
Owner

Please open a discussion on the forum as this is supposed to work fine. Probably you nginx config does not set the PATH_INFO and/or SCRIPT_FILENAME server variables ...
See http://piwigo.org/forum/viewtopic.php?id=25462
http://piwigo.org/forum/viewtopic.php?id=25336
...

Please open a discussion on the forum as this is supposed to work fine. Probably you nginx config does not set the PATH_INFO and/or SCRIPT_FILENAME server variables ... See http://piwigo.org/forum/viewtopic.php?id=25462 http://piwigo.org/forum/viewtopic.php?id=25336 ... <!-- github-comment-id:153405871 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#362