|
| Url Redirect in blog |
 |
Sun, 1 Oct 2006 23:47:19 +0000 |
I'd like to setup a new weblog for special use, i need its has a url without
/blog/**** , but redirects to /special/ directory.
a sample: http://localhost/blogs/special/pages/2433.aspx , i want it to redir to
http://localhost/special/2433.aspx , is it possible ?
what i had done:
- created a "/special/" folder in root and contain some custom index
pages, they works fine;
- add some related content in siteurls.config and blogurls.cs;
added in siteurls.config:
<locations>
.........
<location name="special" path="/special/" />
</locations>
<transformers>
.....
<add key = "##specialdirectory##" value = "(.+)"
/>
.......
</transformers>
<navigation>
.....
<link name="special" resourceUrl="specialhome"
resourceName="special" roles="Everyone" applicationType =
"Special" />
</navigation>
..........
<url name="specialhome" location="special"
path="default.aspx" />
<url name = "sparticleId" location = "special"
path=".aspx" pattern="(\d+)\.aspx"
vanity="/blogs/post.aspx?App=Special&PostID=$1" />
when i nav the url: http://localhost/special/2433.aspx, it always show me http
404 error(The resource cannot be found.), whats wrong in my siteurls.config ?
thank you.
Ken
|
| Post Reply
|
| Re: Url Redirect in blog |
 |
Sun, 1 Oct 2006 23:57:35 +0000 |
if i copy the /blogs/post.aspx to /special, and recode its related components,
it works fine, but i think it'd have a better way, like modifying
siteurls.config/blogurls.cs, to reach it, is it possible?
|
| Post Reply
|
| Re: Url Redirect in blog |
 |
Wed, 4 Oct 2006 20:24:59 +0000 |
solved.
i'd found answer at: http://communityserver.org/forums/thread/529640.aspx
put my custom location name line up to common location line and all works fine
|
| Post Reply
|
|
|
|
|
|
|
|
|
|