![]() |
|
redirect deleted album not working - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: redirect deleted album not working (/thread-11929.html) |
redirect deleted album not working - normcdn - 2015-02-18 Hi, Here is the code I am using ... RewriteEngine on Usually it works, but not this time. redirect deleted album not working - acrylian - 2015-02-18 Cannot really tell why it might have stopped working. Something like this should work, too:
No real htaccess expert myself. Zenphoto does not do all rewriting/redirecting via htaccess anymore. redirect deleted album not working - normcdn - 2015-03-12 Hi, I have been doing few tests recently. If I use this code (as I do regulary to prevent 404 error) in my .htaccess to redirect this 404 error link .. RewriteRule ^gallery/Sights/DelfinarioCayoGuillermo/page/2/$ "http://www.cayocococuba.net/gallery/Sights/DelfinarioCayoGuillermo/" [R=301,L] it will only works if I remove the content of the .htaccess in the main zenphoto folder. BUT If I do so, then all the links from the index page generates a 404 error. Meaning that all albums that I see in the index page are no longer accessible. My question is ... What is the purpose of the .htaccess in the zenphoto folder ? and how to change the content to allow standard redirection. Thanks, Normand redirect deleted album not working - acrylian - 2015-03-12 Where exactly did you put your redirection? It probably needs to be right after the rewriteBase command. I don't exactly understand what the purpose of the exaple is as both is supposedly the same album? Or is the domain different? The purpose of the htaccess is to do general rewriting (if you are on a Apache compatible host, nginx does not need it but other additions). The actual rewriting of urls like redirect deleted album not working - normcdn - 2015-03-12 Hi, htaccess file version 1.4.5;Rewrite rules are now handled by PHP codeSee the file "zenphoto-rewrite.txt" for the actual rulesThese rules redirect everything not directly accessing a file to the Zenphoto index.php script
RewriteEngine On RewriteBase /gallery RewriteRule ^gallery/Sights/DelfinarioCayoGuillermo/page/2/$ "http://www.cayocococuba.net/gallery/Sights/DelfinarioCayoGuillermo/" [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteRule ^.*/?$ index.php [L,QSA] redirect deleted album not working - acrylian - 2015-03-12 Try removing the "gallery" in the first url as that is defined in the rewrite base already. Also the quotes for sure are not needed on the 2nd. Sorry, I am no real htaccess expert. redirect deleted album not working - normcdn - 2015-03-13 Do not be sorry acrylain! You have been more than helpful. redirect deleted album not working - acrylian - 2015-03-13 No idea but if this http://www.cayocococuba.net/gallery/ is the site it seems to work normally to me. redirect deleted album not working - normcdn - 2015-03-13 Yes, it works normally now, because I removed the redirection. redirect deleted album not working - normcdn - 2015-03-14 Hi, htaccess file version 1.4.5;Rewrite rules are now handled by PHP codeSee the file "zenphoto-rewrite.txt" for the actual rulesThese rules redirect everything not directly accessing a file to the Zenphoto index.php script
RewriteEngine On # last update: 2015-03-13 RewriteBase /gallery RewriteRule ^Sights/BoatAdventure/page/2/$ "http://www.cayocococuba.net/gallery/Sights/BoatAdventure/" [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteRule ^.*/?$ index.php [L,QSA] Many thanks for your help! redirect deleted album not working - acrylian - 2015-03-14 Glad you figured it out! I suspected it might have been the "gallery" in the first part of the rules. |