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
I want small url with no parent directory displayed[solved]
I want small url with no parent directory displayed[solved]
Last edited by suadmin on Tue Mar 19, 2013 3:05 am, edited 2 times in total.
-
- 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
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.
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.
Re: I want small url with no parent directory displayed
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
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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: I want small url with no parent directory displayed
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:
Actually, it would be great to make it available in "Content Editing Settings", with a name like "Generate Page URLs which aren't defined"
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 = ''