Page alias/redirect?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
hansom

Page alias/redirect?

Post by hansom »

Hi,

How can I create a page that doesn't contain any content but instead is an alias for another page? What I want to achieve is that when the url http://example.com/foo is accessed it either redirects to http://example.com/foo/bar or, alternatively, returns the same content that the latter url would have returned. Is this possible?

TIA.
mattandaniel

Re: Page alias/redirect?

Post by mattandaniel »

There is the ContentAliases module, but it's not compatible with the latest cmsms build yet, as far as I know
User avatar
robsta
Forum Members
Forum Members
Posts: 131
Joined: Thu Oct 20, 2005 11:39 pm

Re: Page alias/redirect?

Post by robsta »

Yup I had to slap  a




on the page's metadata to get it to work... which is a bit painful... but 'needs must'
Pierre M.

Re: Page alias/redirect?

Post by Pierre M. »

Send a redirect (301, 302...) at the protocol level (HTTP), not inside the page.
Use your webserver or an updated ContentAliases module.
PM
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Page alias/redirect?

Post by Dr.CSS »

This can also be done in the menu with the Content Type drop down, make the page a Link and fill in the fields...
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Page alias/redirect?

Post by Elijah Lofgren »

hansom wrote: Hi,

How can I create a page that doesn't contain any content but instead is an alias for another page? What I want to achieve is that when the url http://example.com/foo is accessed it either redirects to http://example.com/foo/bar or, alternatively, returns the same content that the latter url would have returned. Is this possible?

TIA.
You may find MovedPages useful: http://dev.cmsmadesimple.org/projects/movedpages

Hope this helps,

Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
hansom

Re: Page alias/redirect?

Post by hansom »

Elijah Lofgren wrote:You may find MovedPages useful: http://dev.cmsmadesimple.org/projects/movedpages
Thanks for taking time to reply, but from what I understand MovedPages doesn't help me here. What I would like is the ability to instead of writing content for a specific page specify another page that the former is an alias for (or link to if you so like). For example I may have a page at the location /Stuff/Things but also a page /Things that simply redirects the user to /Stuff/Things. I had imagined there was a Content Type that made this possible.
Locked

Return to “CMSMS Core”