Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# talon 6/6/2007 12:07 PM (edited 6/6/2007 12:29 PM)
Okay,

So I want to add a custom ASPX to our site, and unable to do so.. When I add my custom aspx , ie. vol.aspx, it says page not found. (404). Any ideas? Or how to get this working?
# swilliam 6/6/2007 2:08 PM
Hi there

I would it expect it to 'just work'. Could you explain your problem in more detail, please?

Simon
# martijnb 6/6/2007 3:51 PM
If you add one or more specific aspx pages, you have to let the urlrewriter know that these pages don't need rewritten urls.

For example, if you put the custom aspx pages in a '/Custom' directory, the following line in the web.config
<add match="Default.aspx|\/Login.aspx|\/Rss.aspx|\/Error.aspx|\/Profile.aspx?|\/Modules?|\/Admin?|\/Support?|\/Install?" replace="" />

should be changed into:
<add match="Default.aspx|\/Login.aspx|\/Rss.aspx|\/Error.aspx|\/Profile.aspx?|\/Modules?|\/Admin?|\/Support?|\/Install?|\/Custom?" replace="" />
# swilliam 6/6/2007 4:40 PM
Ah yes...

The pages I've added have generally been within a module so haven't been caught by the URL rewriting.
# talon 6/7/2007 1:33 AM
Aahh, thanks for that fixed the problem, I did the url re-writing trick that seemed to fix it. :)...