[Solved]Pretty urls disappeared

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

[Solved]Pretty urls disappeared

Post by jasnick »

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
Last edited by jasnick on Thu Mar 22, 2012 3:35 am, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Pretty urls disappeared

Post by Wishbone »

What's the URL?
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Pretty urls disappeared

Post by jasnick »

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
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Pretty urls disappeared

Post by Wishbone »

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.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Pretty urls disappeared

Post by jasnick »

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.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Pretty urls disappeared

Post by Wishbone »

jasnick wrote:$config['url_rewriting'] = 'mod-rewrite';
hehehe.. it's 'mod_rewrite'... underscore, not a dash.. I've done that before.

http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s
jasnick wrote:I've noticed the config file is a lot smaller these days than it used to be.
Isn't it nice? Makes it much easier to transfer a site.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Pretty urls disappeared

Post by jasnick »

Wishbone wrote: hehehe.. it's 'mod_rewrite'... underscore, not a dash.. I've done that before.
Stop laughing!!

Thank you! Yes, not the first time for me either!
jasnick wrote:Isn't it nice? Makes it much easier to transfer a site.
Sure does!

Thanks again!
Post Reply

Return to “CMSMS Core”