Custom url parts toevoegen aan url

Nederlandse ondersteuning voor CMS Made Simple

Moderator: velden

Post Reply
remi86
New Member
New Member
Posts: 2
Joined: Tue Dec 16, 2008 1:06 pm

Custom url parts toevoegen aan url

Post by remi86 »

Hallo allemaal,

Ik heb CMS MS MLE 1.8.2 i.c.m. friendly urls met mod_rewrite.

Mijn config.php ziet er zo uit:

Code: Select all

#------------
#URL Settings
#------------

#What type of URL rewriting should we be using for pretty URLs?  Valid options are:
#'none', 'internal', and 'mod_rewrite'.  'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates.  For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
En mijn htaccess is de MLE versie in de docs map:

Code: Select all

# 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=$2&hl=$1 [QSA]
Nu heb ik een eigen zoekfunctie gemaakt. De resultaten wil ik weergeven in een weergave van 20 resultaten per pagina. Alleen als ik de url nu verander naar http://domein.nl/nl/search/[b]1[/b], waar 1 de pagina is, dan krijg ik een 404 error dat de pagina niet bestaat.

Ik heb niet zoveel verstand van htaccess bestanden, moet hier nog wat aan worden toegevoegd, zodat "custom url parts" worden herkend? Of is dit gewoon niet mogelijk?

Alvast bedankt.
deactivated010521

Re: Custom url parts toevoegen aan url

Post by deactivated010521 »

----------
Post Reply

Return to “Dutch - Nederlands”