Announcement

#1 2017-06-25 15:01:01

Bredy
Member
2016-01-13
14

remove index.php from link

Hello,
is possible to remove the index.php from the url address?

Is possible to have the url with category/sub-category?

Thanks

Offline

 

#2 2017-07-14 13:02:49

Cylindric
Member
2017-07-14
2

Re: remove index.php from link

I too am interested in this. It looks a bit dated otherwise.

Offline

 

#3 2017-07-14 13:30:20

teekay
Member
2013-06-12
427

Re: remove index.php from link

You can configure this using LocalFiles Editor plugin -> Local configuration.

For description, see [Github] Piwigo file include/config_default.inc.php@L589

$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;

For more meaningful category/picture names, use

$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'id-name';

You webserver needs to be configured accordingly.

Offline

 

#4 2017-07-14 15:24:41

eliz82
Member
Romania
2016-04-27
281

Re: remove index.php from link

Cylindric wrote:

I too am interested in this. It looks a bit dated otherwise.

U don't belive that you are the first who want this?
This has been asked 100 times before.

example http://piwigo.org/forum/viewtopic.php?id=26896

Offline

 

#5 2017-07-14 15:31:47

Cylindric
Member
2017-07-14
2

Re: remove index.php from link

eliz82 wrote:

Cylindric wrote:

I too am interested in this. It looks a bit dated otherwise.

U don't belive that you are the first who want this?
This has been asked 100 times before.

And nobody got a useful answer, so I figured it worth asking again.


teekay wrote:

You can configure this using LocalFiles Editor plugin -> Local configuration.
For description, see [Github] Piwigo file include/config_default.inc.php@L589
You webserver needs to be configured accordingly.

Is there any information though as to what rewrites need to be in place? Those options seem to disable the ".php" part of the filename and the "?", but I can't see any example .htaccess files to see what the rewrites might be to make it all work. I found a few, such as /index/ being mapped to /index.php/, and "photos" appears in a few places in seemingly-random parts of the URI, sometimes preceded by category data and sometimes not. Does anyone have a working .htaccess file I can see?

thanks.

Offline

 

#6 2017-10-22 18:02:16

Bredy
Member
2016-01-13
14

Re: remove index.php from link

none have a solution? You don't use url seo friendly?
Thanks

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact