Dacht dat ik het aardig door had.
Nou krijg ik een pagina niet te zien als ik geen Pagina URL invul.
Not found... krijg ik dan.
Geen punt... maar bij het Gastenboek heb ik die mogelijkheid niet.
Weet iemand waarom die pagina URL op deze site ingevuld moet worden?
http://www.huysvanleyden.nl/cms/
Is misschien al eens gevraagd, maar ik kan het niet vinden.
Bij voorbaat ... ontzettend bedankt
[OPGELOST]Pagina's alleen zichtbaar na invullen 'Pagina URL'
Moderator: velden
[OPGELOST]Pagina's alleen zichtbaar na invullen 'Pagina URL'
Last edited by Adheera on Thu Jun 14, 2012 2:52 pm, edited 1 time in total.
Re: Pagina's alleen zichtbaar na invullen 'Pagina URL'
Lijkt me eerder een pretty-url rewrite probleempje...
Wat is je .htaccess en hoe is je config.php (zonder database info!!)
grtz. Rolf
Wat is je .htaccess en hoe is je config.php (zonder database info!!)
grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Pagina's alleen zichtbaar na invullen 'Pagina URL'
De .htacces
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /cms
# 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]
</IfModule>
Config
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'xxxxxxx';
$config['db_password'] = 'xxxxxx';
$config['db_name'] = 'xxxxx';
$config['db_prefix'] = 'xxxxx';
$config['db_port'] = 0;
$config['root_url'] = 'http://www.huysvanleyden.nl/cms';
$config['timezone'] = 'Europe/Amsterdam';
$config['default_encoding'] = 'utf-8';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /cms
# 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]
</IfModule>
Config
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'xxxxxxx';
$config['db_password'] = 'xxxxxx';
$config['db_name'] = 'xxxxx';
$config['db_prefix'] = 'xxxxx';
$config['db_port'] = 0;
$config['root_url'] = 'http://www.huysvanleyden.nl/cms';
$config['timezone'] = 'Europe/Amsterdam';
$config['default_encoding'] = 'utf-8';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
Re: Pagina's alleen zichtbaar na invullen 'Pagina URL'
dat lijkt goed...
Kijk net nog even in je pagina broncode, maar het lijkt er op dat je geen {metadata} tag in de <head> hebt.
De zorgt er voor dat de root_url ook in de paginabron komt...
<base href="..." />
grtz. Rolf
Kijk net nog even in je pagina broncode, maar het lijkt er op dat je geen {metadata} tag in de <head> hebt.
De zorgt er voor dat de root_url ook in de paginabron komt...
<base href="..." />
grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Pagina's alleen zichtbaar na invullen 'Pagina URL'
Bos bloemen, taart of krat bier?
Waar kan ik het naartoe sturen?
U is geweldig, Rolf.. dank je wel
Waar kan ik het naartoe sturen?
U is geweldig, Rolf.. dank je wel
Re: Pagina's alleen zichtbaar na invullen 'Pagina URL'
Haha, ik ben verslaafd aan Wilhelmina pepermunt, doe dat maarAdheera wrote:Bos bloemen, taart of krat bier?

Maar uhh, graag gedaan hoor. Altijd leuk om iemand op weg te helpen.
Veel plezier met CMS Made Simple!!
grtz. Rolf

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Pagina's alleen zichtbaar na invullen 'Pagina URL'
Ik aan honingdrop .Rolf wrote:Haha, ik ben verslaafd aan Wilhelmina pepermunt, doe dat maar
Heb me 'laten inspireren' door jouw gastenboek op je 'zonder zout' site.
(je styles gejat dus

Hoe krijg je dat erop: E-mail : [ komt niet op de website! ]
Mooie site zeg, veel informatie.
Je bent duidelijk een programmeur.
Ik ben maar een autodidact webbouwertje die alle zeilen bij moet zetten om bij te blijven (nog 3 jaar voor ik AOW krijg)
Groeten, adheera