Page 1 of 1

I want small url with no parent directory displayed[solved]

Posted: Wed Feb 20, 2013 4:15 am
by suadmin
Hi,

In older versions of cmsms we had an option to disable the hierarchy structure to be displayed in the url while enabling pretty url through mod rewrite in config.php. But no so facility is there in CMS versions Like 1.11 .I have tried writing same codes in config file copying them from old cmsms version config format.

For example:
presently it is
"http://www.xyz.com/holiday-packages/everest-tour.html

I want it to be as follows
"http://www.xyz.com/everest-tour.html

Please suggest what can be done.


Regards,
Anisha

Re: I want small url with no parent directory displayed

Posted: Wed Feb 20, 2013 6:13 am
by calguy1000
Check the options in the global settings. Particularly the 'Content Editing Settings' or whatever it's called.

Re: I want small url with no parent directory displayed

Posted: Sat Feb 23, 2013 3:52 am
by suadmin
Hi,

I tried many things as advised by you in site admin setting but was not successful. Please suggest what can be done.

Thanks,

Regards,
Anisha

Re: I want small url with no parent directory displayed

Posted: Sat Feb 23, 2013 4:10 am
by Rolf

Re: I want small url with no parent directory displayed

Posted: Wed Mar 13, 2013 8:19 pm
by jsmonzani
Rolf's suggestion is correct: I've tested it in 1.11.4
You should go to Site Admin -> Global Settings -> Content Editing Settings
and check
Automatically create page URL's: Yes
Automatically created URL's are flat: Yes

Mind you though that the new approach is to use custom page URLs: therefore, you must edit each of your pages and save them again to ensure CMSMS will create a custom url with the same name as the alias for each page.

For large sites, this is cumbersome. One solution I've tested is to update table cms_content with page_url <- content_alias

In MySQL, this works:

Code: Select all

UPDATE cms_content SET page_url = content_alias
WHERE page_url = ''
Actually, it would be great to make it available in "Content Editing Settings", with a name like "Generate Page URLs which aren't defined"