Page 1 of 1

[opgelost]: pretty url wampserver

Posted: Sat Dec 12, 2009 11:56 pm
by rido
hallo

wampserver ben bezig met een website probeer ik de Pretty URL
home doet het maar zoals andere links doen het niet als ik met mijn muis overheen ga  Pretty URL doen het zodra ik er op klik  geeft hij fout melding weet jullie misschien wat de oorzaak is ?

trouns heb ik rolf pm gesteurd kreeg dit als antwoord


Bij een wamp server werkt pretty url toch net even wat anders. Eigenlijk gewoon niet... Even uitzetten dus.

wat moet ik hier uitzetten?

Re: pretty url wampserver

Posted: Sun Dec 13, 2009 12:05 am
by Jos
het pretty url mechanisme kun je uitschakelen in de config.php.  even in die code duiken dus  ;)

Re: pretty url wampserver

Posted: Sun Dec 13, 2009 12:08 am
by rido
dank je wel voor je snelle reactie zal eff proberen

Re: pretty url wampserver

Posted: Sun Dec 13, 2009 12:15 am
by rido
als die zo zet dan krijg ik oude url


heb eff zo gedaan
#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 ... ty_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';

Re: pretty url wampserver

Posted: Sun Dec 13, 2009 12:18 am
by Jos
Als je het netjes wil doen, dan in plaats van

Code: Select all

#$config['url_rewriting'] = 'mod_rewrite';
maak je er

Code: Select all

$config['url_rewriting'] = 'none';
van

Re: pretty url wampserver

Posted: Sun Dec 13, 2009 12:23 am
by rido
ik heb het eff naar wat je zei verandert maar de url  is
#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 ... ty_URL.27s
$config['url_rewriting'] = 'none';

#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';
de url is  http://localhost/index.php?page=portofolio  maar ik wil dat hij zo verandert  http://localhost/portofolio

zou dat mogelijk zijn ?

Re: pretty url wampserver

Posted: Sun Dec 13, 2009 9:38 am
by Jos
Ja dat kan, maar mogelijk niet met WAMP zoals Rolf al aangaf. Ook op Windows servers zul je tegen problemen aanlopen trouwens.

Overigens zou ik portofolio ook veranderen naar portfolio  ;)

Re: pretty url wampserver

Posted: Sun Dec 13, 2009 9:45 am
by rido
ok bedankt voor de hulp ik zal me verder niet in verdiepen ik zal het als opgelost zetten  :)