Announcement

#31 2012-07-25 01:08:02

flop25
Piwigo Team
2006-07-06
7037

Re: Seo clean url with image name

yep but not this one since it's not your thread


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#32 2015-05-08 12:26:13

mindhaq
Member
Berlin
2015-04-16
3

Re: Seo clean url with image name

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.

Offline

 

#33 2015-09-18 23:03:59

ordually
Guest

Re: Seo clean url with image name

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.

 

#34 2015-12-19 00:35:26

andrewjs18
Member
2014-10-10
50

Re: Seo clean url with image name

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

 

#35 2016-06-06 16:10:49

helmuc
Member
Maidstone, UK
2013-05-23
73

Re: Seo clean url with image name

Added

Code:

$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:

Code:

AcceptPathInfo On
Options +MultiViews

--

huge thank you guys :) the urls have changed.. hopefully this will improve the rankings.. otherwise they suck big time :/

http://content.screencast.com/users/helmuc/folders/Jing/media/f809a835-ee5a-4495-92f6-90f2c4627196/artforweb-stats.png

http://content.screencast.com/users/helmuc/folders/Jing/media/427d1e8c-089c-4376-9a0c-8eaa2d1bb9d2/g-analytics-stats.png
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

 

#36 2022-01-02 09:16:56

arashnejad
Member
Norway
2021-12-25
14

Re: Seo clean url with image name

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

 

#37 2022-01-03 18:23:19

myVortexServers
Member
2021-08-04
20

Re: Seo clean url with image name

If anyone can create a plugin for something like this, it would save my day.

Thoughts?

Offline

 

#38 2022-01-04 01:06:25

erAck
Only trying to help
2015-09-06
2026

Re: Seo clean url with image name

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
?


Running Piwigo at https://erack.net/gallery/

Offline

 

#39 2022-01-04 12:26:38

arashnejad
Member
Norway
2021-12-25
14

Re: Seo clean url with image name

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

 

#40 2022-01-04 12:29:31

arashnejad
Member
Norway
2021-12-25
14

Re: Seo clean url with image name

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

 

#41 2022-01-04 12:57:22

erAck
Only trying to help
2015-09-06
2026

Re: Seo clean url with image name

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


Running Piwigo at https://erack.net/gallery/

Offline

 

#42 2022-01-05 04:44:59

arashnejad
Member
Norway
2021-12-25
14

Re: Seo clean url with image name

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

 

#43 2022-01-05 13:19:48

erAck
Only trying to help
2015-09-06
2026

Re: Seo clean url with image name

Yes that's a 404, even the page title says so.
Talk to your hosting provider.


Running Piwigo at https://erack.net/gallery/

Offline

 

#44 2022-01-06 04:12:50

myVortexServers
Member
2021-08-04
20

Re: Seo clean url with image name

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

 

#45 2022-01-06 13:14:41

arashnejad
Member
Norway
2021-12-25
14

Re: Seo clean url with image name

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

 

Board footer

Powered by FluxBB

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