Thanks for your suggestion regaring 301 URL Tracker - the site launched today and i can't risk breaking it.
I simply installed 301 URL tracker (Webdeploy / Umbraco 6.2.2 / simple database setup) and was completely shut out of Umbraco backend/frontend. Had to manually delete the package/dependancies via FTP to get the site up and running again.
I would be happy to help you troubleshoot on an upcoming project. I have a project coming up in the next month where your package could help. I that case i would need support/assistance from you in case things go south. Let me know if we should pursue this.
Totally forgot to reply to your original question!
I use this for removing '.aspx':
<!-- SEO | Trim .aspx for directory URLs -->
<!-- Note: using UrlRewriting.Net because IIS UrlRewriting doesn't like rules with .aspx in it -->
<add name="SEO | Trim .aspx for directory URLs"
redirect="Application"
redirectMode="Permanent"
virtualUrl="^/(?![0-9]+.aspx)(?!umbraco/)([^\?]*?).aspx$"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="/$1/"
ignoreCase="true" />
So I guess something like this should work:
<add name="Redirect asp to aspx"
redirect="Application"
redirectMode="Permanent"
virtualUrl="^/([^\?]*?)\.asp$"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="/$1.aspx"
ignoreCase="true" />
Thanks for your suggestions, i already tried that rewrite unfortunately. For some reason i does not work and still results in a 404 when i enter an "old" URL - eg. http://www.nssas.dk/Default.asp?ID=7
301 redirect: asp to aspx
Hi,
Tried a pletera of different approches on how to 301-redirect an old ".asp" based site to the clients new Umbraco site. Nothing seems to do the trick.
Old contact page: http://www.nssas.dk/Default.asp?ID=7
New contact page: http://www.nssas.dk/kontakt-os.aspx
Thought this would do the trick (Returns 404 on asp pages):
Tried adding ASP to ASPX rewrite (Returns 404 on .aspx pages):
Also tried installing 301 URL Tracker but unfortunately that completely broke the site/installation.
Any help will be greatly appreciated.
Thanks in advance
I'd recommend the 301 Url Tracker, because I've built it and it has been built exactly for these situations :-P
Tell me, what happened when you installed the Url Tracker? It would've been nice if you reported the bug to me...
Thanks for your suggestion regaring 301 URL Tracker - the site launched today and i can't risk breaking it.
I simply installed 301 URL tracker (Webdeploy / Umbraco 6.2.2 / simple database setup) and was completely shut out of Umbraco backend/frontend. Had to manually delete the package/dependancies via FTP to get the site up and running again.
I would be happy to help you troubleshoot on an upcoming project. I have a project coming up in the next month where your package could help. I that case i would need support/assistance from you in case things go south. Let me know if we should pursue this.
BR Jeppe / Leanback.dk
In the end you should never do anything to your production environment without having at least tested it on your development environment first ;-)
Too bad you didn't make a screenshot of the error or something like that.
Totally forgot to reply to your original question!
I use this for removing '.aspx':
So I guess something like this should work:
Thanks for your suggestions, i already tried that rewrite unfortunately. For some reason i does not work and still results in a 404 when i enter an "old" URL - eg. http://www.nssas.dk/Default.asp?ID=7
Ok, so i got a proper 301 for the old asp pages using the below rewrite.
Now all i need to do rewrite the resulting URLs eg. http://www.nssas.dk/?ID=7 (The below unfortunately does not work.)
Any tips on how to 301-redirect http://www.nssas.dk/?ID=7 to http://www.nssas.dk/kontakt-os.aspx this URL?
Thanks again
I'd use IIS Url Rewrite, much better than UrlRewriting.NET IMO...
Thanks, but i don't have that option unfortunately. I need to implement the 301's via UrlRewriting.config
is working on a reply...