I really need to only do this to a couple pages. I don't need many redirects, so I guess this can be an option. If I want www.abc.com/user to redirect to www.abc.com/user/account, do I just put /user/account in the url alias?
Maybe I am doing it wrong, but www.abc.com/user is a page that does in fact exist, so I created a property called umbracoUrlAlias and on my account node which is located at /user/account, I put user in the umbraco url alias textbox, but when I type in www.abc.com/user, it goes to www.abc.com/user and not www.abc.com/user/account. If I put in a non-existing node like test, it goes to www.abc.com/user/account.
umbracourlalias does not redirect. This property creates an alternative URL for the page content. When entered www.abc.com/user/account browser displays the contents of www.abc.com/user.
To rewrite you need to create a rule in config/UrlRewriting
If its just a quick re-direct on one or two pages I probably wouldn't bother installing any packages. Just add a rewrite rule to your web.config within system.webServer
There are some other properties available so you might want to have a play. I am pretty sure something like this will work well for you though. Done it myself a few times for other projects.
If you have lots of re-directs you need to manage then there might be an Umbraco packages available that does this better. I am not too sure though.
The way how I've managed re-directs for multiple pages in the past is by having a string field on every page document type called redirectToPage. I then add a macro to the master page as per below.
Have umbraco navigate to another page when using a different url?
I have the following url:
http://stage.sctflash.com/user
but when the user enters this url or clicks it, I actually want them to go to:
http://stage.sctflash.com/user/account instead. How can I do this with Umbraco or UrlReWriting?
Hi Saied
I think that you should have a look at the 301 url tracker package
https://our.umbraco.org/projects/developer-tools/301-url-tracker/
With this package you have the option to create redirects
Hope this can be a solution.
/Dennis
Hi Dennis,
I am using Umbraco 7.3. Looks like this package is only compatible 29%.
Thanks
Hi Saied,
This is people who vote for the package, and they vote if it's work for them.
You could try to give the package a spin on a test site to see if you can use it for your purpose.
Or try to use the other option that I have linked to.
/Dennis
Thanks Dennis,
For the past year, I kept thinking that was the compatibility percent lol. You always learn something new.
Another option could be
https://our.umbraco.org/projects/backoffice-extensions/permanent-redirect/
/Dennis
Hi, You tried to use umbracoUrlAlias property?
https://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias/
I really need to only do this to a couple pages. I don't need many redirects, so I guess this can be an option. If I want www.abc.com/user to redirect to www.abc.com/user/account, do I just put /user/account in the url alias?
Maybe I am doing it wrong, but
www.abc.com/user
is a page that does in fact exist, so I created a property calledumbracoUrlAlias
and on my account node which is located at /user/account, I put user in theumbraco url alias textbox
, but when I type inwww.abc.com/user
, it goes towww.abc.com/user
and notwww.abc.com/user/account
. If I put in a non-existing node like test, it goes towww.abc.com/user/account
.umbracourlalias does not redirect. This property creates an alternative URL for the page content. When entered www.abc.com/user/account browser displays the contents of www.abc.com/user. To rewrite you need to create a rule in config/UrlRewriting
Or using UrlProvider and ContentFinder
Hi,
If its just a quick re-direct on one or two pages I probably wouldn't bother installing any packages. Just add a rewrite rule to your web.config within system.webServer
E.g
There are some other properties available so you might want to have a play. I am pretty sure something like this will work well for you though. Done it myself a few times for other projects.
If you have lots of re-directs you need to manage then there might be an Umbraco packages available that does this better. I am not too sure though.
The way how I've managed re-directs for multiple pages in the past is by having a string field on every page document type called redirectToPage. I then add a macro to the master page as per below.
Basically it checks if there is a re-direct set on the page and if so then run a redirect.
Hope this helps
Kind Regards
David
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.