Copy pages with different url

cenkgoksel Member
edited January 30 in General support

Hi there i have another questions about Zenphoto.
I have been in google webmaster console and i have seen zenphoto makes a lots of copy pages and its shows like a copy page in google even they are same page.

For example;

google read and index : https://www.fdream.co.uk/?album=Aqua

and google not index ( put as copy pages catagory ) ; https://www.fdream.co.uk/index.php?album=Aqua

and also in photo pages aswell to

index : https://www.fdream.co.uk/index.php?album=Pink-Blush&image=IMG_20210112_233721.jpg

not index : https://www.fdream.co.uk/?album=Pink-Blush&image=IMG_20210112_233721.jpg

i think zenphoto create same page in 2 different url for all pages.

1 with index.php inside url and another one without index.php inside url.

Google index some of them without index.php name inside url some of with index.php name on url.
all mixed up.

How i can solve this problem ?
Thanks very much...

Comments

  • cenkgoksel Member
    edited January 30

    By the way i find the problem
    i was using zenphoto sitemap tools to create sitemap.
    And i find out that sitemap tools when is create sitemap all the time create url names without index.php name inside it.

    like;

    https://www.fdream.co.uk/?album=Aqua
    2021-01-29T14:52:05Z
    daily
    0.8

    thats why google was going to try read it first from this name and plus link was different in website aswell and try read another link to.

    i make 301 redirect to all the papes from
    https://www.fdream.co.uk/index.php
    to: https://www.fdream.co.uk

    its seems like problem solve all pages url become same.
    The only problem from main site link urls are still index.php name are in. But in the and when u click it going to page where i make 301 redirect link.
    And hopefuly its will not going to be problem for google.
    Still if i can find a any way the change to links name without index.php inside in zenphoto thats will be good.

    Thanks very much again to everyone.

  • acrylian Administrator, Developer

    You should really enable modrewrite. Then then there is no index.php in album or any other URL in the first place (see our own site).
    This https://www.fdream.co.uk/index.php?album=Aqua would be just https://www.fdream.co.uk/Aqua/then.

    We focus on modrewrite URLS and bascially rarely specifically test without it to be honest. Really all proper webhosts should support that by now and no one should be using non rewritten URLs at all. Even for SEO sake.

    However there is still the issue that you even with modrewrite enabled can use yourdomain.com and yourdomain.com/index.phpwhich is indeed not optimal. We'll see what we can do here. Thanks for noting that.

  • acrylian Administrator, Developer

    I have take a look at the sitemap generatio. This is actually wrong as it should include index.php in album URLs. So it should actually generate https://www.fdream.co.uk/index.php?album=Aqua - as that is what Zenphoto itself uses - and not https://www.fdream.co.uk/?album=Aqua. Although both technically is the same.

  • cenkgoksel Member
    edited January 31

    Dear @acrylian thanks very much for more information i didnt even know about modrewrite thanks again for u told me that.
    I seen i have realy needs to do it even for image pages for make it .html but i have been waiting to long for google coming index my pages i have 300 pages indexed in google now i dont know how im gonna do it ? do you think am i gonna lose all my old page ranks in the google or is there any way i can do redirect it all
    ?

    By the way just for look and try i enable modrewrite than links and album names is fix like you said
    its become like this ;
    https://www.fdream.co.uk/Aqua/
    but all the links give 404 error when u click it .

  • acrylian Administrator, Developer

    I seen i have realy needs to do it even for image pages for make it .html

    Actually that is called the "Modrewrite suffix" and currently needed to differ image page from others so ZP is not confused. You can change this to anything else but should not leave it empty (as that might be causing trouble because a script page then looks like an direct image url. Which may be considered harmful by some tools and confuse GOogle.

    i have been waiting to long for google coming index my pages i have 300 pages indexed in google now i dont know how im gonna do it ?

    Sorry, if your site has a general low rank it may take some time until Google indexes it. That is a whole SEO science by itself we cannot cover here. Use the search console to check.

    You should not loose your former unrewritten URLs as this is a redirect. For example try https://www.zenphoto.org/index.php?album=theme which ends on https://www.zenphoto.org/theme/

    but all the links give 404 error when u click it .

    You have to have the htaccess file in place. Re-Run setup and it s hould tell you to create it.

  • cenkgoksel Member
    edited February 5

    Hi back dear @acrylian i have try mod rewrite again but its didnt work.

    I have check it i have htaccess file in www.fdream.co.uk/ here

    (
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^fdream.co.uk$ [OR]
    RewriteCond %{HTTP_HOST} ^www.fdream.co.uk$
    RewriteRule ^(.)$ "https:\/\/www.fdream.co.uk\/$1" [R=301,L]
    RewriteCond %{HTTP_HOST} ^fdream.co.uk$ [OR]
    RewriteCond %{HTTP_HOST} ^www.fdream.co.uk$
    RewriteRule ^index.php\/?(.
    )$ "https:\/\/www.fdream.co.uk\/$1" [R=301,L]
    )

    plus i do re-run install again even try couple of times
    clear date base but still the when u click album links its give
    404 error.
    Even after that i create new album upload new photo inside still when u click that album its give 404 error.

    And i have another question aswell i want to transfer my host server is it possble transfer all the zenphoto website without any problem on my new host is that enough to use only backup or what else we needs to do ?

    Thanks Very much Kind Regards ...

  • acrylian Administrator, Developer

    No wonder that modrewrite does not work as that ist not the correct Zenphoto htaccess file. All yours contains is domain redirections.

    Remove it, re-run setup and let setup create a new one. Those domain www/httss rediretions which normally should be done server side, If you need them on yours you have to manually edit the htaccess file afterwards.

    And i have another question aswell i want to transfer my host server is it possble transfer all the zenphoto website without any problem on my new host is that enough to use only backup or what else we needs to do ?

    Please see https://www.zenphoto.org/news/moving-and-changing-existing-installations/

Sign In or Register to comment.