How to modify the hyperlink after create a new node?
I have installed umbraco4blog, and it automatically created a sub folder called blog under the topmost content folder in content section, then we can visit the blog through yourdomin.com/blog.aspx. I don't like such link, can you tell me how to change it to yourdomin.com/blog or exactly, /blog/default.aspx. Thanks.
To have say yourdomin.com/blog you will need to set umbracoUseDirectoryUrls to true in the web.config.
Another option is to have a sub-domain: blog.yourdomain.com
To do this add it a blog as a new node below the content folder (below your main content node). Right click on your main node and manage hostnames - set the URL as yourdomain.com. And then also manage hostnames in your blog node and set it to blog.yourdomain.com
Unfortunately, it seems that it doesn't work. Although it linked to document type /blog, it returned 404 error page when requests were sent. And the pages located in the folder were immediately in vain, they can not match the corresponding document types. Is there anything I missed? How about UrlRewriting, I have my site installed in a shared hosting, weather the function will be in action or not? Thank you!
Paul's comments are really to way to go, set umbracoUseDirectoryUrls to true in web.config (and may/may not need some mods to iis, depending on running version of iis), and your blog should be accessible through http://domain.com/blog
If you still have issues getting the /blog page to work, please append ?umbDebugShowTrace=true to your url and let us know the trace output of that page.
And what exactly do you mean by "And the pages located in the folder were immediately in vain, they can not match the corresponding document types"?
How to modify the hyperlink after create a new node?
I have installed umbraco4blog, and it automatically created a sub folder called blog under the topmost content folder in content section, then we can visit the blog through yourdomin.com/blog.aspx. I don't like such link, can you tell me how to change it to yourdomin.com/blog or exactly, /blog/default.aspx. Thanks.
To have say yourdomin.com/blog you will need to set umbracoUseDirectoryUrls to true in the web.config.
Another option is to have a sub-domain: blog.yourdomain.com
To do this add it a blog as a new node below the content folder (below your main content node). Right click on your main node and manage hostnames - set the URL as yourdomain.com. And then also manage hostnames in your blog node and set it to blog.yourdomain.com
Unfortunately, it seems that it doesn't work. Although it linked to document type /blog, it returned 404 error page when requests were sent.
And the pages located in the folder were immediately in vain, they can not match the corresponding document types. Is there anything I missed? How about UrlRewriting, I have my site installed in a shared hosting, weather the function will be in action or not? Thank you!
Hi Ethan,
Paul's comments are really to way to go, set umbracoUseDirectoryUrls to true in web.config (and may/may not need some mods to iis, depending on running version of iis), and your blog should be accessible through http://domain.com/blog
http://domain.com/blog/default.aspx won't work unless you have a "default" page node under the blog node
If you still have issues getting the /blog page to work, please append ?umbDebugShowTrace=true to your url and let us know the trace output of that page.
And what exactly do you mean by "And the pages located in the folder were immediately in vain, they can not match the corresponding document types"?
Looking forward to your info.
Regards,
/Dirk
is working on a reply...