I have now realized I need the URL re-writing rule, but I want to exlude ONE URL
So if some one requests
www.mywebsite.com/myfile.aspx I want it to be processed all other *.aspx urls I don't. Can someone point me in the direction of how to modify this URL rule to achieve this:
If I wanted to redirect a specific URL to another URL
so...
for example www.website.com/myfile.xml will redirect the user to www.website.com/myfile.aspx
the myfile.aspx will then run some c# code and return myfile.xml
Is this possible? Will it work? at the moment when a user goes to www.website.com/myfile.aspx the browser automatically downloads a xml file (witch is what I want)
Ultimately when a user requests www.website.com/myfile.xml I want the myfile.aspx to run and return the dynamically generated xml file.
.aspx URLS giving 404 - Umbraco 6.2.1
Hey guys,
I have just started working on an existing umbraco project built by another developer, the project is using version 6.2.1.
In the root of the website I have a aspx file but when I try to browse the page:
I have a txt file in the same location and this works:
I have had a look at the UrlRewriting.config file and I found this.
Is this rule stooping my aspx URLs not to work?
How can I have a seprate aspx file inside my umbraco site that responds to:
thanks in advance.
Ayo
Yes, the rule is stopping your aspx URLs and you could've found out by just removing the rule. Why didn't you try that?
Because I am a doughnut..
thanks, working now!
I have now realized I need the URL re-writing rule, but I want to exlude ONE URL
So if some one requests
www.mywebsite.com/myfile.aspx I want it to be processed all other *.aspx urls I don't. Can someone point me in the direction of how to modify this URL rule to achieve this:
^/(?!((?:(?:umbraco|data|install|usercontrols|umbraco_client)/)|(?:myfile|yourfile|somefile)\.))(.*)\.aspx
But this should be enough:
^/(?!((?:(?:install|umbraco|umbraco_client)/)|(?:myfile)\.))(.*)\.aspx
Thanks....
and just out of interest...
If I wanted to redirect a specific URL to another URL
so...
for example www.website.com/myfile.xml will redirect the user to www.website.com/myfile.aspx
the myfile.aspx will then run some c# code and return myfile.xml
Is this possible? Will it work? at the moment when a user goes to www.website.com/myfile.aspx the browser automatically downloads a xml file (witch is what I want)
Ultimately when a user requests www.website.com/myfile.xml I want the myfile.aspx to run and return the dynamically generated xml file.
I could tell you, but you wouldn't learn anything out of it.
Instead, this URL should help you create the rule you want: http://weblogs.asp.net/scottgu/tip-trick-url-rewriting-with-asp-net
Hello
My Umbraco version
umbraco v 4.0.3 (Assembly version: 1.0.3625.27276)
My setting in web.config is as below
<add key="umbracoUseDirectoryUrls" value="false"/>
below URL works
http://www.qihub.scot.nhs.uk/improvement-journey.aspx
but the one below (with out .aspx) is throwing error "Page cannot be found"
http://www.qihub.scot.nhs.uk/improvement-journey
How can you make it work for with the .aspx.
Thanks for help
Faiyaz
Our users want
You said it already works with .aspx....
Apologies,
The users want it to work with out ".aspx" in the URL.
Faiyaz
In that case umbracoUseDirectoryUrls should be set to true.
I tired that, unfortunaely not working.
is working on a reply...