yep but not this one since it's not your thread
Offline
For me, URLs without question mark stopped working after a server upgrade (Ubuntu 12.04 to 14.04).
I had errors in my logfile like this:
[negotiation:error] [pid 4018] [client xx.xx.xx.xx:65385] AH00687: Negotiation: discovered file(s) matching request: /var/www/xxxxx/index (None could be negotiated).
Luckily, I found a solution on serverfault.
http://serverfault.com/a/566548
After uncommenting the line application/x-httpd-php in /etc/mime.types and restarting apache, everything worked fine again.
Just to let you know.
Offline
mindhaq wrote:
For me, URLs without question mark stopped working after a server upgrade (Ubuntu 12.04 to 14.04).
...
After uncommenting the line application/x-httpd-php in /etc/mime.types and restarting apache, everything worked fine again.
Thank you Mindhaq! I had this same trouble with 14.04 Ubuntu.
mindhaq wrote:
For me, URLs without question mark stopped working after a server upgrade (Ubuntu 12.04 to 14.04).
I had errors in my logfile like this:Code:
[negotiation:error] [pid 4018] [client xx.xx.xx.xx:65385] AH00687: Negotiation: discovered file(s) matching request: /var/www/xxxxx/index (None could be negotiated).Luckily, I found a solution on serverfault.
http://serverfault.com/a/566548
After uncommenting the line application/x-httpd-php in /etc/mime.types and restarting apache, everything worked fine again.
Just to let you know.
thank you, this fixed my problem as well.
Offline
Added
$conf['question_mark_in_urls'] = false; $conf['php_extension_in_urls'] = false; $conf['category_url_style'] = 'id-name'; $conf['picture_url_style'] = 'file';
ad updated .htacess with:
AcceptPathInfo On Options +MultiViews
--
huge thank you guys :) the urls have changed.. hopefully this will improve the rankings.. otherwise they suck big time :/
Helmuts
p.s. despite all this - I still love piwigo and I'm not giving up my hobby project :)
Last edited by helmuc (2016-06-06 16:16:38)
Offline
Hi,
I have the same problem with the urls not being clean and user firendly.
I have applied this to local config file
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
and made a simple file in notepad++ ( renamed it .htaccess ) and copied it to the local root of the piwigo via ftp
AcceptPathInfo On
Options +MultiViews
Still the url looks like this in albumview:
https://piwigo.nyebilder.no/index.php/c … erveien_17
need it to look like this
---------------piwigo.nyebilder.no/Bleikerveien_17 (preferley with big B in the album name)
And looks like this in single picture view:
https://piwigo.nyebilder.no/picture.php … erveien_17
need it to look like this
---------------piwigo.nyebilder.no/Bleikerveien_17-220415-008
Thanks for any help that can be provided:)
Offline
If anyone can create a plugin for something like this, it would save my day.
Thoughts?
Offline
arashnejad wrote:
I have applied this to local config file
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
Are you sure that
a) you applied that to local/config/config.inc.php
b) the leading <?php and trailing ?> tags are present in that file
?
Offline
Hi erAck and thanks for your reply!
I checked the config.inc.php file via ftp, and the changes i wrote in local files editor in piwigo are present.
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = true; // I have to change this to "true". with false i get
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
----------------------------
$conf['php_extension_in_urls'] = true; // I have to change this to "true" as the album + single image page are not coming up.
With the above config the first page is ok.
https://piwigo.nyebilder.no/
An album page looks like this with the album name in url, but the page itself is not coming up:
https://piwigo.nyebilder.no/index/categ … erveien_17
only with this message on the page:
Not Found
The requested URL was not found on this server.
And of course no single image page coming up either.
With the $conf['php_extension_in_urls'] = true; I still get the exact same URL but this time the album with thums are shown
Part B
The ? is removed from URL.
When i set
$conf['php_extension_in_urls'] = true;
I get this ALBUM (first album on the page)
https://piwigo.nyebilder.no/index.php/c … erveien_17
Need this: https://piwigo.nyebilder.no/bleikerveien_17
And this SINGLE PAGE
https://piwigo.nyebilder.no/picture.php … erveien_17
Need this: https://piwigo.nyebilder.no/Bleikerveien_17-220415-008
What am I missing?
Thanks for you time and help!
Offline
Hi agian erAck,
This is a direct copy of the config.inc.php in ftp
-------------------------------------------------
<?php
/* The file does not exist until some information is entered
below. Once information is entered and saved, the file will be created. */
// permitted characters for files/directoris during synchronization
$conf['sync_chars_regex'] = '/^[ %()帿ŨÆäöüÄÖÜßa-zA-Z0-9-+=_.]+$/';
$conf['bootstrap_darkroom_navbar_main_style'] = 'navbar-light';
$conf['bootstrap_darkroom_navbar_main_bg'] = 'bg-light';
$conf['bootstrap_darkroom_navbar_contextual_style'] = 'navbar-light';
$conf['bootstrap_darkroom_navbar_contextual_bg'] = 'bg-light';
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = true; // album and single page not coming up when set to "false"
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
?>
--------------------------------------------------------------
Offline
What does "page not coming up" exactly mean? It's generating a 404 error instead? If so, then the
Options +MultiViews
in your .htaccess has no effect in your hosting environment.
> Need this: https://piwigo.nyebilder.no/bleikerveien_17
> Need this: https://piwigo.nyebilder.no/Bleikerveien_17-220415-008
You won't get that. The minimum you'll get is
https://piwigo.nyebilder.no/index/categ … erveien_17
https://piwigo.nyebilder.no/picture/Ble … 220415-008
Offline
erAck wrote:
What does page not coming up means?
https://www.dropbox.com/s/stylldxgufdva … E.jpg?dl=0
As you can see, when i set the php extention in urls = false, i get the above page (hope the link for the screen shots works! if not:
the URL is showing: https://piwigo.nyebilder.no/index/categ … erveien_17)
Page is displaying:
NOT Found
the requested URL was not found on this server.
------------------------------------------
- Is this a 404 or something else?
- Is there anything I can install OR ask my hosting company to install to make this work?
- Since I dont get pass the album page (above) I dont see a imegepage/ slideshow either!
I have to set the - php extention in urls = true - as this is a test site and i need the albums / pages to work.
Thanks for your time and effort:)
Regards,
Arash Nejad
Offline
Yes that's a 404, even the page title says so.
Talk to your hosting provider.
Offline
Hello,
I need exact replacement of these htaccess codes for nginx conf
#
Then I pasted this into each .htacess
AcceptPathInfo On
Options +MultiViews
#
I tried some multiple combinations by searching but they do not seems to be working perfectly with these.
Any ideas?
Offline
Hi reAck,
Album name is working, under is the code that can help if others have the same problem with 404
I contacted the hosting provider.
They told me to add the following to .htaccess file in the root and now the album + image pages are shown.
-----------------------------
AcceptPathInfo On
Options +MultiViews
<Files "*.php">
MultiviewsMatch Any
</Files>
-----------------------------
Is it possible to clean the URL some more as mentioned before?
1:
In album page, is there way to remove the album nr from the URL before album name? (1-)
https://piwigo.nyebilder.no/index/categ … erveien_17
2: In single image page, is it possible to remove catagory/ album name after image Id? (/category/1-bleikerveien_17)
https://piwigo.nyebilder.no/picture/Ble … erveien_17
PS!
When i comes to SEO. I have the META plug in, do still need to make a robots.txt and put in the root, like in wordpress? I need google to see the album names + descriptions.
Thanks for your help.
Arash Nejad
Offline