Ik wist wel dat ik er niet in twee keer zou zij.arnoud wrote: Ziet er nu mooi uit voor de detailpagina's.
Maar hoe zit het met de summary page? deze: $page_name == 'news' bestaat niet.

Wat zou ik daar 'moeten' invullen?
Gr. Gregor
Moderator: velden
Ik wist wel dat ik er niet in twee keer zou zij.arnoud wrote: Ziet er nu mooi uit voor de detailpagina's.
Maar hoe zit het met de summary page? deze: $page_name == 'news' bestaat niet.
Dat gaat Google niet helpenAdditionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Code: Select all
{if $canonical_link != ''}
{$canonical_link}
{elseif $page_name == 'lbjaar'}
<link rel="canonical" href="http://www.uisge-beatha.eu/logboek/" />
{/if}
Code: Select all
{if isset($entry->canonical)}
{* {assign var='canonical' value=$entry->canonical} *}
{capture assign='canonical_link'}<link rel="canonical" href="{root_url}/logboek/{$entry->id}/{$entry->title|munge_string_to_url}/" />{/capture}
{/if}
Hoe kom je daar nou zo snel achter???arnoud wrote: http://www.uisge-beatha.eu/logboek/ bestaat niet en
http://www.uisge-beatha.eu/Logboek_overzicht/ geeft een error.
Wie kan me een stukje verder helpen?# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
# php_value upload_max_filesize "10M"
# php_value session_save_path "tmp/cache"
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
#php_flag display_errors off
SetEnv TZ Europe/Amsterdam
#enable php.ini
suPHP_ConfigPath /home/efacti/php.ini
# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off
#
Options +FollowSymLinks
#
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /
#
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# Optimization of the website
AddOutputFilterByType DEFLATE text/html text/plain text/xml
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# modified 18mei2010
# Don't compress images
# SetEnvIfNoCase Request_URI \
# \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# modified 18mei2010
# turn on the module for this directory
ExpiresActive on
# set default
ExpiresDefault "access plus 72 hours"
ExpiresByType image/jpg "access plus 1 months"
ExpiresByType image/ico "access plus 1 year"
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
# ExpiresByType text/css "access plus 1 months"
ExpiresByType text/javascript "access plus 1 months"
ExpiresByType application/javascript "access plus 1 months"
ExpiresByType application/x-shockwave-flash "access plus 1 months"
#
#
Header set Cache-Control "public"
Header set Expires "Thu, 15 Apr 2012 20:00:00 GMT"
#
#
#
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
#
# Om Google een handje te helpen (CMSMS forum NL)
#RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^news/([0-9]+)/(.*)$ logboek/$1/$2 [R=301,QSA,L]
#RewriteRule ^news/([0-9]+)/(.*)$ logboek/$1/$2 [R=301,QSA,L]
#
#RewriteRule ^(.*)test.html$ index.php?page=404 [R=404,L]
#ErrorDocument 404 /index.php?page=404
#
#
# use images on sub domain
#
# Order deny,allow
# RewriteEngine on
# RewriteCond %{REQUEST_URI} \.(ico|gif|jpg|jpeg|png|flv|pdf|mp3|wav|js|css|kml|xml)$
# RewriteCond %{HTTP_HOST} ^www\.image\. [NC]
# RewriteRule .* http://www.uisge-beatha.eu/uploads/images%{REQUEST_URI} [R=301,L]
Code: Select all
# Om Google een handje te helpen (CMSMS forum NL)
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^news/$ logboek/$1 [R=301,QSA]