Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
hello every body
i want to redirect to nodes through its id in the URL
but i want to add some text after id like this sentence
http://localhost:13557/node ID-some text
http://localhost:13557/node ID/some text
how can i do that ?
When a request is made to Umbraco a series of 'ContentFinders' are executed one after another, with each containing different business logic to try to route the Incoming Url to a corresponding Umbraco content item, if a particular rule doesn't match, the next ContentFinder in the queue 'has a go' to try and match the incoming Url etc
You can add your own rules by implementing your own ContentFinder and adding it to the queue of ContentFinders.
There is an example here in the docs:
Your custom ContentFinder could issue a 301 redirect if required.
not sure what you are trying to achive but isn't this possible with a querystring?
If I am not mistaken, the query string is not a good practice regarding to Google's SEO standards.
you are right, but why is that?
The reason why query strings are not very good for seo is 1. duplicate content and 2. keyword cannibalization. Both of these reasons come from url's that are different but the page showing is still basically the same (in keywords and content).
But your question is how to add some text to url. So is there a way to do that without running into these seo-problems? No, if you are running into these problems using querystring, you will also run into them with different url-structure.
However there are some things you could do to solve these problems like Canonical-Tags, NoIndex-Entrys etc.
The main problem is that i have a nodes with so long name that generate a (Max URL length Error)
and the only solution i have is to use node id in URL instead of ordinary URL and add short brief of the name
If you add a new textbox property to your document types with an alias 'umbracoUrlName'
Then editors could provide a shorter version of the title for the Url, and Umbraco will automatically change the Url to use the shorter version.
+1 we use this textbox approach and it works well.
Hello Marc Goodson
thanks a lot for your help
its work but the problem unfortunately didn't solved if i fill the text box with long string the page will return the maximum URL length error
i think that the only way to solve this problem is committed to a maximum length in the text box
Yes I wasn't thinking it would allow you to be able to create longer URLs! That is a limit outside of Umbraco's control!!
But it would allow you to have a long page name/title... But provide a shorter version for the URL...
... There are a couple of plugins that would allow you to set a character limit on the textbox...
To prevent people accidentally making the URL too long
thank you at all
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted