Redirects

adecastro's Avatar

adecastro

04 Nov, 2010 08:25 PM

Is there a way to create redirects in the Cascade Server for the site the CMS produces? What I mean is: Is there a way where you can create some data definition where a user can type in a redirect name (i.e. "admissions") and the user can select an internal page in the directory or place an external link thereby associating that page/link with the redirect which becomes "http://www.myuniversity.edu/admissions"?

It attaches the redirect name to the url and points that url to the chosen internal page/file in the site.

Thanks and let us know if anyone else has created this process.

  1. 1 Posted by Joel on 11 Nov, 2010 08:59 PM

    Joel's Avatar

    You should be able to achieve this via a Symlink within the CMS. If your use case differs please let me know.

    Thanks!

  2. 2 Posted by Penny on 17 Nov, 2010 05:05 PM

    Penny's Avatar

    Clarification:
    Symlinks are non-publishable assets that are useful when wanting to add External Links to dynamically driven content (navigation, sitemaps, etc). Because they are non-publishable, they can not really be used to communicate directly with your server with regards to creating redirects on it.

    There are however two ways that I have found to implement this:
    1) Create a Content Type that will utilize a Data Definition that users can enter groupings of redirect information into, this page can have a block and format combo that output the content as a .htaccess file. This allows for the management of redirects in one location.
    2) Create a Content Type for Page Redirects that utilizes a scripting language (PHP, .net, Coldfusion, JS, etc) that will actually perform the redirect. This means that you will need to have one page for every redirect that you want. There are a couple ways that these can be contained in Cascade. The first being that they all be contained in a separate site so as not to confuse users who just want to manage content within Cascade. The other being within your site structure depending on where you want content redirected from.

    If anyone else has any suggestions on other ways of doing this, I would be really interested in hearing them.

  3. adecastro closed this discussion on 19 Nov, 2010 06:18 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac