Forums / Setup & design / Alias and removing foldernames from url

Alias and removing foldernames from url

Author Message

Zinistry Vacana

Sunday 06 April 2003 7:48:57 am

Does anyone know how I can remove demo, user etc. (http://www.xxx.xx/demo/content/view...) from the url?

And how to get textbased url's? Didn't find this in the sdk

Jan Borsodi

Monday 07 April 2003 4:47:14 am

You'll have to use another siteaccess match method, the current one matches on the url. See settings/site.ini and the group SiteAccessSettings for more details, you could change the matching to host based and for instance match www.xxx.xx to demo site and admin.xxx.xx to admin site.

For textbased urls (I'm assuming you mean nice urls) you have to create custom templates for your design, you access the nice url with $node.url_alias.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Scot Wilcoxon

Tuesday 08 April 2003 12:59:20 pm

It's also a little more complex than it seems. The access such as "demo" can actually be inserted in generated URLs. Even with a configuration which hides "demo", some siteaccess methods create pages which have "demo" in the URLs for links within those pages.