So when i try to do /umbraco i get redirected to the home page. I am trying to create an ignore list of urls, so the urls in rewritemap i want those to be ignored. The first url works fine so if i hit
/umbraco/webservices/cacheRefresher.asmx
I can get to it. The other urls do not work they redirect to home page. I want those to resolve as they are called on certain pages using ajax. Can anyone see where I am going wrong?
I can get that to work if i put the re writes in root directory, however I cannot get it to work with my other url cacheRefresher.
In theory the original config i posted should work, in the list urls i just tried one of the surface controller ones only still no joy, either it does not like extentionless url or the non working urls have querystrings and that is causing issue? So near yet to so far GRRRRR.
I'm not familiar with rewrites in web.config, but when doing rewrites in the UrlRewriting.config file, there's a couple of additional attributes that decide on what to do with the QueryString - maybe you need to check if something like that's available when doing it in web.config as well?
Or maybe you just need to add (.*) to the other URLs to make sure any "extras" are accounted for?
Restrict access to /Umbraco
Guys,
I am trying prevent access to /Umbraco using IIS rewrite, so for Umbraco directory I have the following web.config
So when i try to do /umbraco i get redirected to the home page. I am trying to create an ignore list of urls, so the urls in rewritemap i want those to be ignored. The first url works fine so if i hit
/umbraco/webservices/cacheRefresher.asmx
I can get to it. The other urls do not work they redirect to home page. I want those to resolve as they are called on certain pages using ajax. Can anyone see where I am going wrong?
Cheers
Ismail
Hi Ismail,
Maybe this article can help you out ?
http://tcmorris.net/blog/custom-domain-for-umbraco/
Dave
Dave,
I can get that to work if i put the re writes in root directory, however I cannot get it to work with my other url cacheRefresher.
In theory the original config i posted should work, in the list urls i just tried one of the surface controller ones only still no joy, either it does not like extentionless url or the non working urls have querystrings and that is causing issue? So near yet to so far GRRRRR.
Regards
Ismail
Hi Ismail,
I'm not familiar with rewrites in web.config, but when doing rewrites in the UrlRewriting.config file, there's a couple of additional attributes that decide on what to do with the QueryString - maybe you need to check if something like that's available when doing it in web.config as well?
Or maybe you just need to add
(.*)
to the other URLs to make sure any "extras" are accounted for?/Chriztian
Hey Ismail,
I think rewrite maps do not allow for regular expressions. You could try the following instead:
Hope that helps.
Thanks, Dan.
Dan,
Bingo, many many thanks for this.
Regards
Ismail
is working on a reply...