Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
$rv = $config["baseurl"].rawurlencode($row["path"]);
$rv = $config["baseurl"].rawurlencode($row["path"]) . '/';
$rv = $config["baseurl"].rawurlencode($row["collection_path"]) . '/' . rawurlencode($row["album_path"]);
$rv = $config["baseurl"].rawurlencode($row["collection_path"]) . '/' . rawurlencode($row["album_path"]) . '/';
# BEGIN Plogger
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /your_plogger_folder_here
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule ^(.*)$ http://www.your_site.com/your_plogger_folder_here/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [S=4]
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule ^(.*)$ $1/ [R=301,L]
RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]
</IfModule>
# END Plogger
Just replace 'www.your_site.com' and 'your_plogger_folder_here' with your actual values. That should force a 301 redirect for non-trailing slashes and non www. request.Posted By: treebonkerWorks great, thank you! Fixed the mod_rewrite and the double slashed ..//feed/ link issue associated with the permanent redirect. One question though, when requesting http://www.domain.com/plogger it redirects to http://domain.com/plogger/ and then http://www.domain.com/plogger/. I'm not sure why it strips the www when adding the trailing slash. Is there a way around this?I'm guessing the reason it strips the 'www' is because your server is set up with 'www' as a CNAME for the top level domain. In this instance, our mod_rewrite rules are not adding the trailing slash, your server setup is. This is because the folder "plogger/" is an actual directory on the server (which skips our trailing slash setup).
# BEGIN Plogger
# Start of the IF statement
# If the module 'mod_rewrite' is available on the server, do the following code (down to the closing </IfModule> tag)
<IfModule mod_rewrite.c>
# Turn on the RewriteEngine
RewriteEngine on
# This rule only applies to files / folders that are located under the directory 'your_plogger_folder_here'
RewriteBase /your_plogger_folder_here
# If the HTTP_HOST is returned without a 'www' at the beginning . . .
RewriteCond %{HTTP_HOST} !^www [NC]
# . . . , then redirect (permanently using a '301' redirect) with the 'www' included
RewriteRule ^(.*)$ http://www.your_site.com/your_plogger_folder_here/$1 [R=301,L]
# If the REQUEST_FILENAME is a real directory . . .
RewriteCond %{REQUEST_FILENAME} -d [OR]
# . . . or if REQUEST_FILENAME is a real filename . . .
RewriteCond %{REQUEST_FILENAME} -f
# . . . , do nothing and skip the next 4 lines of code (the ReweriteCond and 3 RewriteRules)
RewriteRule ^.*$ - [S=4]
# If the REQUEST_URI does not contain a dot (.) as in a file extension (.php or .html) OR if it does not end with a trailing slash . . .
RewriteCond %{REQUEST_URI} !(\.|/$)
# . . . , then redirect (permanently using a '301' redirect) with a trailing slash added (/)
RewriteRule ^(.*)$ $1/ [R=301,L]
# any path that ends with "feed/" gets invisibly redirected to "plog-rss.php?path=" where "path" is equal to everything to the right of "your_plogger_folder_here/"
RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
# any other path gets invisibly redirected to "index.php?path=" where "path" is equal to everything to the right of "your_plogger_folder_here/"
RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]
# END of the IF statement
</IfModule>
# END Plogger
/# Begin Plogger
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /your_plogger_folder_here
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule ^(.*)$ http://www.your_site.com%{REQUEST_URI}/ [R=301,L]
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule ^(.*)$ http://www.your_site.com/your_plogger_folder_here/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [S=2]
RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]
</IfModule>
# END Plogger
Posted By: PieperLy(SVN trunk isn't an alternative for me - after install svn shows many, many errors on my site so i canceled the svn and use beta3)What errors show up when you use the SVN installation? The reason I ask is that it shouldn't have any errors and also, to accomplish what you want with the trailing slashes is a lot of code changes (which have been implemented in a couple of SVN commits).
error_reporting(E_ALL);
to error_reporting(0);
in plog-globals.php on line 10 before uploading and see if that works for you.
Posted By: PieperLy1: how can i use in svn the old beta2 format /?page=x for albums instead the new /?plog_page=xWhen using cruft-free URLs, pagination is now no longer being used as ?page=x at all. It's now rendered as /page/x/ It was changed from ?page=x to plog_page=x because there are other CMS instances out there that use ?page=x for switching pages. There are also ones that use ?id=x and we are working on changing Plogger from ?id=x to ?plog_id=x or something of the sort.
Posted By: PieperLy2: how can i change the gallery-root from / to the old format /index.php?The current SVN trunk uses the base that you start with, so if you start your page from http://www.mysite.com/index.php it will continue the links with http://www.mysite.com/index.php?level=collection&id=x, but if you are using http://www.mysite.com/ it will continue with http://www.mysite.com/?level=collection&id=x. If you are using cruft-free URLs, it removes the 'index.php' autmatically so you get URLs like http://www.mysite.com/collection/album/ (clean)
Posted By: PieperLy3: can i these two options change before i install svn?See above.
Posted By: PieperLy4: gives in svn the correct trailing slash for all breadcrumb- and thumblinks and adresses?Yep, all are done with a trailing slash.
Posted By: PieperLy5: can i set picture-site extensions in svn to .html or .php or /The current SVN removes the file extension and adds a trailing slash. It used to be /collection/album/picture.jpg and now it's /collection/album/picture/
Posted By: PieperLy6: to upgrade can i copy the svn-files over the plogger3 files and then run _upgrade.php?We are still working on the installation/upgrade code for the new SVN trunk > revision 550 when the structure was altered. Basically, the easiest way at this point is:
Posted By: PieperLy7: wich svn is the last and where can i download this?The latest is revision 572. The link is here
Posted By: PieperLy8: can i use in svn filenames under thumbs in picture.php with truncate option?You'll have to copy your plogger_get_filename() function. I haven't yet added it to the SVN (but I could soon if you want to wait).
Posted By: PieperLy9: can i dissable the javascript-mouseover-gimmick for comments? the art to show from beta2 (3 comments) was beautiful.I'm not sure I know what you are talking about. Is this the overlay from the default theme that shows the number of comments if you mouse-over the image? You can always use a different theme or change the default one to do what you would like. If you can wait for about a day, I can finish uploading some code I've been working on that should allow you to use your old theme for the current install of Plogger.
Posted By: PieperLy(your link above to svn 573 is broken - can you rectify?)It should be fixed now.
Posted By: PieperLyI understand you completely and why you would do something of the sort, I just think it is awkward. :)
index.html and index.php are not the same file, they are in same dir
Posted By: PieperLyWhy do you want to change from UTF-8? This will handle any foreign language support.
how can i change the charset from utf-8 to iso iso-8859-1 in svn?
Posted By: PieperLywith utf-8 i have many cryptical chars on my site, change i to iso-8859-1 it's ok.Try this then. Open 'plog-load_config.php' (plog-load-config.php in the SVN) and change the following code:
$config['charset'] = 'utf-8';
$config['charset'] = 'iso-8859-1';
1 to 21 of 21