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

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
suadmin
Forum Members
Forum Members
Posts: 36
Joined: Tue Jan 22, 2013 7:29 am

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

Post 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
Last edited by suadmin on Tue Mar 19, 2013 3:05 am, edited 2 times in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: I want small url with no parent directory displayed

Post by calguy1000 »

Check the options in the global settings. Particularly the 'Content Editing Settings' or whatever it's called.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
suadmin
Forum Members
Forum Members
Posts: 36
Joined: Tue Jan 22, 2013 7:29 am

Re: I want small url with no parent directory displayed

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: I want small url with no parent directory displayed

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
jsmonzani
Forum Members
Forum Members
Posts: 54
Joined: Mon Apr 03, 2006 10:58 am

Re: I want small url with no parent directory displayed

Post 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"
Post Reply

Return to “The Lounge”