Using 1.10.3
A new site is almost finished and last night I changed to pretty urls as I have done many many times before. Everything was fine but this morning the pretty urls had gone. All I have done to the site is change the navigation and made a few more corrections.
Really don't want to have to restore the site to what it was before if I can help it. If anyone knows where I can look for whatever has caused the change I would be grateful. In particular, the .htaccess which is a bit of a mystery to me.
Thanks
[Solved]Pretty urls disappeared
[Solved]Pretty urls disappeared
Last edited by jasnick on Thu Mar 22, 2012 3:35 am, edited 1 time in total.
Re: Pretty urls disappeared
What's the URL?
Re: Pretty urls disappeared
Sorry Wishbone, the site is not online.
Isn't this sort of thing goverend by the .htacess file?
If I restored this to the original when I first set up the site, would this do any good?
Thanks
Isn't this sort of thing goverend by the .htacess file?
If I restored this to the original when I first set up the site, would this do any good?
Thanks
Re: Pretty urls disappeared
Is the problem that the links being generated aren't pretty? Or are you getting 404/not found when you click on one? First issue is config.php, the second is .htaccess.
Re: Pretty urls disappeared
Yes - thank you Wishbone - not pretty! No error message
Config:
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
[removed identifying data from here]
$config['timezone'] = 'Australia/West';
$config['default_encoding'] = 'utf-8';
$config['url_rewriting'] = 'mod-rewrite';
?>
I've noticed the config file is a lot smaller these days than it used to be.
Config:
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
[removed identifying data from here]
$config['timezone'] = 'Australia/West';
$config['default_encoding'] = 'utf-8';
$config['url_rewriting'] = 'mod-rewrite';
?>
I've noticed the config file is a lot smaller these days than it used to be.
Re: Pretty urls disappeared
hehehe.. it's 'mod_rewrite'... underscore, not a dash.. I've done that before.jasnick wrote:$config['url_rewriting'] = 'mod-rewrite';
http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s
Isn't it nice? Makes it much easier to transfer a site.jasnick wrote:I've noticed the config file is a lot smaller these days than it used to be.
Re: Pretty urls disappeared
Stop laughing!!Wishbone wrote: hehehe.. it's 'mod_rewrite'... underscore, not a dash.. I've done that before.
Thank you! Yes, not the first time for me either!
Sure does!jasnick wrote:Isn't it nice? Makes it much easier to transfer a site.
Thanks again!