Keep additional page paths

Permalink 1 user found helpful
Hi to all the concrete community, how can I keep the additional page paths without redirecting to the original path, for example:
/cats (original)
/kitties (additional)
I need that /kiities page keep that url and if there any possibility to do that without changing the core

 
jordanlev replied on at Permalink Reply
jordanlev
I don't know of any way to do this easily (without delving into too much code). But if your site is running on Apache, you can fairly easily create some rewrite rules in your .htaccess file to accomplish this. For example, you could add this to the .htaccess file on your server:

RewriteRule ^kitties$ cats

Unfortunately that isn't very maintainable because it's outside of the CMS, but it might work if your needs are simple.
calebphp replied on at Permalink Reply
please tell me the hard way !!! I can't find it on the code, I have checked the Request.php file but without results.
jordanlev replied on at Permalink Reply
jordanlev
Unfortunately I don't know the hard way, so I can't tell you -- sorry!
jordanlev replied on at Permalink Reply
jordanlev
By the way, if anyone is reading this thread in the future: there is actually a *very* easy way to achieve what the original poster wants to do: create a page alias in the sitemap by dragging the icon of the first page to some other location in the sitemap, and when you're done dragging it to the new location, you will be asked if you want to move, copy, or alias the page -- choose alias.
hgstudio replied on at Permalink Reply
hgstudio
I am also looking for a way to do this.
I have pages at the menu's top level that are aliased in sub-menus.
I want the original page URL to be used, and not that of the aliased location.

Example:

Home
About Us (original URL)
Links
Contact
More Information
> About Us (aliased link)
> another sub-menu link

I want the URL to be
/index.php/about_us
NOT
/index.php/more_information/about_us

Any suggestions would be greatly appreciated.
jordanlev replied on at Permalink Reply
jordanlev
So you actually want to do something different than what the original poster asked -- you *do* want to redirect to the other page so that the URL is always the top-level one -- correct?

There's two ways to do this (neither of which involves the page alias you already set up so you'll want to remove that alias page from the sitemap before doing either of these):

1) Add an "External Link" in the sitemap and type in the full URL to the top-level About Us page. This is really easy to do and is built-in, but if you move your site to a new location (like this is a development server and you're eventually moving it to a different directory on the live server or changing the domain name), then this link will break until you remember to go to the sitemap and edit the URL again.

2) Download and install the free Page Redirect addon from the marketplace:
http://www.concrete5.org/marketplace/addons/page-redirect/...
(note that you have to install another free addon as well, which is a requirement of this one working -- see instructions on the marketplace page)
Then you create a normal page in your site and add that new attribute to it and set it to redirect to the top-level About Us page.
This method is better as it will maintain the link even if the site is moved, so if you don't mind installing the above addons and setting them up, then I'd say that's the best way to go.

-Jordan
hgstudio replied on at Permalink Reply
hgstudio
jordanlev,

You're right; I misread the original post.

Thanks for your response. I'm going to use the addon approach.