<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DotNetNuke</title><link>http://www.dotnetnuke.com/tabid/795/Default.aspx</link><description>Discussions of DotNetNuke for ASP.NET 1.x and above.  &lt;a href="http://www.dotnetnuke.com/" target="_blank"&gt;DNN Home&lt;/a&gt; &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=105&amp;c=25" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/987192.aspx</link><pubDate>Thu, 14 Jul 2005 01:53:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:987192</guid><dc:creator>captscott019</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/987192.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=987192</wfw:commentRss><description>dotnetoholic,&lt;BR&gt;&lt;BR&gt;Thank you very much for&amp;nbsp;this very useful code. I'd been struggling for days trying to 301 redirect .aspx pages in DNN. I was using Inventua's HREF exchanger in DNN2, and am in the process of upgrading to DNN3 and wanted to take advantage of the friendly URL's. I was affraid of taking a big hit in the search engines until I found your code.&lt;BR&gt;&lt;BR&gt;One question,&lt;BR&gt;Can you use "Regular Expressions" (regex) in the errorredirect.aspx page? I have several hundred pages to redirect and regex would make it alot simpler.&lt;BR&gt;&lt;BR&gt;Thanks,&lt;BR&gt;Scott Jennings</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/888126.aspx</link><pubDate>Sun, 10 Apr 2005 21:17:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:888126</guid><dc:creator>dotnetoholic</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/888126.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=888126</wfw:commentRss><description>&lt;P&gt;I just set up my site to redirect old htm and aspx pages to the new DNN URLs and to send a Response 301 "Moved Permanently" for the benefit of search engine robots. I did not notice the SiteUrls.config file until I was done, but it probably would not have sent the 301 code anyway. Here is how I did it:&lt;BR&gt;&lt;BR&gt;1. Set the custom error page for 404 errors in IIS to my custom &lt;FONT color=#0000ff&gt;ErrorRedirect.aspx page. My site is hosted on webhost4life, and they provided a control panel form to set this value. This step is necessary to handle non-ASP.NET pages, such as .htm and .asp, which are not affected by the web.config setting below.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;To redirect old&amp;nbsp;.aspx pages, I added an error element to web.config to redirect 404 errors to my custom &lt;FONT color=#0000ff&gt;ErrorRedirect.aspx page&lt;/FONT&gt;:&lt;BR&gt;&lt;FONT color=#0000ff size=2&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;customErrors&lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;mode&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="RemoteOnly"&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;error&lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;statusCode&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="404"&lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;redirect&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="/ErrorRedirect.aspx"&lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;/&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;customErrors&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;3. I wrote the ErrorRedirect.aspx page shown below and deployed it to the root folder. If you use this page, replace yourwebsitename.com with your actual site name, correct the tab numbers and e-mail address as needed, and modify the SELECT CASE statement to include the redirects you desire.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;lt;PRE&amp;gt;&amp;lt;%@ Language="vb" %&amp;gt;&lt;BR&gt;&amp;lt;HTML&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;script runat="server" language="vb"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;' This sub redirects from old files to new files at new locations&lt;BR&gt;&amp;nbsp;&amp;nbsp;' or with a new URL.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Try&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim strRedirectUrl As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim strRawUrl As String = Request.RawUrl&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' Example RawUrl:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' /errorredirect.aspx?404;http://www.yourwebsitename.com:80/index.htm&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' /ErrorRedirect.aspx?aspxerrorpath=/Useful_Sites.aspx&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Trace.Write("ErrorRedirect.Page_Load", String.Format("RawUrl = {0}", strRawUrl))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim strSourceUrl As String = Request.QueryString("aspxerrorpath")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If strSourceUrl Is Nothing OrElse strSourceUrl.Length = 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If strRawUrl.IndexOf("?404") &amp;gt; 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strSourceUrl = strRawUrl.Substring(strRawUrl.LastIndexOf("/"))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' Else leave strSourceUrl empty.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Trace.Write("ErrorRedirect.Page_Load", String.Format("strSourceUrl = {0}", strSourceUrl))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Select Case strSourceUrl.ToLower()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Case "/useful_sites.aspx"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strRedirectUrl = "&lt;A href="http://www.yourwebsitename.com/UsefulSites/tabid/52/Default.aspx"&gt;http://www.yourwebsitename.com/UsefulSites/tabid/52/Default.aspx&lt;/A&gt;"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Case "/index.htm", "/index.html", "/default.htm", "/default.html", "/default.asp"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strRedirectUrl = "&lt;A href="http://www.yourwebsitename.com/"&gt;http://www.yourwebsitename.com/&lt;/A&gt;"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Case Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strRedirectUrl = String.Empty&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End Select&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If strRedirectUrl.Length &amp;gt; 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.Status = "301 Moved Permanently"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.AddHeader("Location", strRedirectUrl)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.End&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End if&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Catch ex As Exception&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Trace.Warn("ErrorRedirect.Page_Load", ex.ToString())&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' Show this error page.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Response.Redirect("&lt;A href="http://www.yourwebsitename.com/"&gt;http://www.yourwebsitename.com/&lt;/A&gt;")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;End Try&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;Private Sub Send_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Web.Mail.SmtpMail.Send(txtEmail.Text, "&lt;A href="mailto:support@yourwebsitename.com"&gt;support@yourwebsitename.com&lt;/A&gt;", "yourwebsitename.com: 404 - Page Not Found", txtDescription.Text)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;lblFeedback.Visible = False&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;lblResult.Text = "E-mail has been sent. Thank you."&lt;BR&gt;&amp;nbsp;&amp;nbsp;End Sub&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;BR&gt;&amp;lt;head&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;title&amp;gt;404 - Page Not Found&amp;lt;/title&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;meta name="robots" content="noindex" /&amp;gt;&lt;BR&gt;&amp;lt;/head&amp;gt;&lt;BR&gt;&amp;lt;body&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;lt;h1&amp;gt;404 - Page Not Found&amp;lt;/h1&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;Sorry but the page you were looking for has not been found.&amp;nbsp; We tried our best to direct you&lt;BR&gt;to a suitable place automatically but we did not find a suitable match...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;lt;h3&amp;gt;What can you do now?&amp;lt;/h3&amp;gt;&lt;BR&gt;Well you could try &amp;lt;a href="JAVASCRIPT:window.history.back();"&amp;gt;going back&amp;lt;/a&amp;gt; to the last page&lt;BR&gt;you visited and then browsing somewhere else, alternatively you could visit our &amp;lt;a href="/"&amp;gt;front page&amp;lt;/a&amp;gt;&lt;BR&gt;and try browsing your way down from there - whatever you're looking for should be available either&lt;BR&gt;directly from the front page or from one of the sections which are linked from the front page.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;lt;h3&amp;gt;If all else fails...&amp;lt;/h3&amp;gt;&lt;BR&gt;If you think that the link you just followed really should work and you've tried quite hard to &lt;BR&gt;access it then drop us an e-mail explaining which link keeps bringing you to this page and where you &lt;BR&gt;found it.&amp;nbsp; Most of the time these sorts of problems are automatically registered somewhere and somebody&lt;BR&gt;will be dealing with it, but on the off-chance that for some reason this process has failed if you &lt;BR&gt;drop us an e-mail somebody will look into it. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form runat="server"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Label id="lblFeedback" runat="server"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please describe what the error was to the administrators so this can get fixed:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;table&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Email:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;asp:TextBox id="txtEmail" runat="server"/&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td colspan=2&amp;gt;Description:&amp;lt;br /&amp;gt;&amp;lt;asp:TextBox id="txtDescription" TextMode="multiline" height=200 width=400 runat="server"/&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/table&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button id="btnSend" onclick="Send_Click" Text="Send" runat="server"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:Label&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Label id="lblResult" runat="server" /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/p&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;BR&gt;&amp;lt;/body&amp;gt;&lt;BR&gt;&amp;lt;/HTML&amp;gt; &lt;BR&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;lt;/PRE&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/847693.aspx</link><pubDate>Fri, 04 Mar 2005 21:41:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:847693</guid><dc:creator>WEBPC</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/847693.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=847693</wfw:commentRss><description>You are right that once someone has reached your site and clicks on links shown on the pages then they will be following those links as coded in the HTML transferred to thier browser.
&lt;br /&gt;

&lt;br /&gt;
I am not sure on this but in most cases if there is a rewrite function for friendly URLs etc every html request is going to involve the rewrite function to either decipher a friendly URL or encode a friendly one.  The same will happen with a redirect however after a period you will be able to do away with the redirect as people enter the site by the new URLs.
&lt;br /&gt;

&lt;br /&gt;</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/847688.aspx</link><pubDate>Fri, 04 Mar 2005 21:34:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:847688</guid><dc:creator>jhenak</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/847688.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=847688</wfw:commentRss><description>With Friendly URLS it is always re-written. Thus load on the server is the same, and when the user is re-directed the new URL should be passed to the client/spider.  Since the re-direct's are stored in the site.config it makes the solution portable.   Also since I am the server admin it makes the process easy.  
&lt;br /&gt;

&lt;br /&gt;
If DNN meets our needs it will be here to stay for awhile :)</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/847599.aspx</link><pubDate>Fri, 04 Mar 2005 20:32:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:847599</guid><dc:creator>rickhodder</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/847599.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=847599</wfw:commentRss><description>Just a question here: with the rewrite/redirect solution, the only rewrite/redirect will probably only be the first entry into the portal for a user, right? I would assume that once they are in the portal, anywhere they go to within the portal will be using the tabid stuff without redirection, right?
&lt;br /&gt;

&lt;br /&gt;
Ex.
&lt;br /&gt;

&lt;br /&gt;
I point my browser at myoldpage.aspx
&lt;br /&gt;
I get redirected to default.aspx?tabid=xxx
&lt;br /&gt;
Once there, any links on the page will already be in the format default.aspx?tabid=yyy
&lt;br /&gt;

&lt;br /&gt;
Am i right?</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/847421.aspx</link><pubDate>Fri, 04 Mar 2005 17:28:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:847421</guid><dc:creator>WEBPC</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/847421.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=847421</wfw:commentRss><description>Just from the points of reducing the load on the server in having to rewrite the URL's and updating the search engines records so new visitors go direct to the new page.
&lt;br /&gt;
Also down the track what if you change the site again you will have more admin to make more changes and things would get more complicated.
&lt;br /&gt;
Antony</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/847366.aspx</link><pubDate>Fri, 04 Mar 2005 16:34:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:847366</guid><dc:creator>jhenak</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/847366.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=847366</wfw:commentRss><description>Hmm, if they look for the page at the old URL and it returns the same information (By USing the URL Rewrite DNN Module) Why do I need a 301 re-direct?</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/847027.aspx</link><pubDate>Fri, 04 Mar 2005 13:11:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:847027</guid><dc:creator>WEBPC</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/847027.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=847027</wfw:commentRss><description>Hi 
&lt;br /&gt;
One other thing to think of is that you want search engine links to find the new pages and update thier DB to point to the new address.  To do this you have to send a Response 301 &amp;quot;Moved Permanently&amp;quot;
&lt;br /&gt;
This also means that over a period of time you will not have to spend resources in just doing a redirect and will make the site faster (this does depend on how popular your site is).
&lt;br /&gt;
We are still on DNN2.1.2 and are using Slalom Services  Custom 404 Handler primarily for the Response 301. Unfortunately they haven't got one for ver3
&lt;br /&gt;
Antony</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/846661.aspx</link><pubDate>Fri, 04 Mar 2005 01:50:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:846661</guid><dc:creator>jhenak</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/846661.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=846661</wfw:commentRss><description>Thanks, That's what I thought.</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/846635.aspx</link><pubDate>Fri, 04 Mar 2005 01:06:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:846635</guid><dc:creator>Sponge_Bob</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/846635.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=846635</wfw:commentRss><description>&lt;br /&gt;
I have created a module to aid in this &lt;a href="/AspNetForums/ShowPost.aspx?&amp;PostID=846367"&gt;view post 846367&lt;/a&gt;
&lt;br /&gt;</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/846604.aspx</link><pubDate>Fri, 04 Mar 2005 00:24:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:846604</guid><dc:creator>jbrinkman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/846604.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=846604</wfw:commentRss><description>IIS will forward any request to the ISAPI associated with the extension.  To make your current scenario work, just map .ASP to the ASP.Net dll and then the rewriter will work correctly.  There is no reason to use another solution.  The rewriter has all the power you need to handle this task, it is just a matter of configuration.  There is no majic, all of the other solutions available work the exact same way.
&lt;br /&gt;</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/846585.aspx</link><pubDate>Thu, 03 Mar 2005 23:56:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:846585</guid><dc:creator>jhenak</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/846585.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=846585</wfw:commentRss><description>I'm still getting a 404 error.  
&lt;br /&gt;

&lt;br /&gt;
I suppose my question is no longer if it is possible but I'm curious about how The HTTPURL Rewrite module intercepts the request for a NON- ASP.net Page. 
&lt;br /&gt;

&lt;br /&gt;
If I request http://www.mysite.com/somePERLLink.pl
&lt;br /&gt;

&lt;br /&gt;
IIS is configured to intercept that request with perl.exe and return the result.  The same is true for .asp, .php, .aspx, etc.  Each extension has with it a program that is used to interpet the server side page that is set within IIS.
&lt;br /&gt;

&lt;br /&gt;
Does ASP.net Have access to redirect URLS that are not designated to be handled by ASP.Net?</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/845677.aspx</link><pubDate>Thu, 03 Mar 2005 11:31:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:845677</guid><dc:creator>anthony.glenwright</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/845677.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=845677</wfw:commentRss><description>The Inventua HrefExchanger allows you to do this, you just have to set your tab names to the old names of the pages.
&lt;br /&gt;

&lt;br /&gt;
http://www.inventua.com/dnn-downloadshome.content
&lt;br /&gt;</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/845528.aspx</link><pubDate>Thu, 03 Mar 2005 05:24:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:845528</guid><dc:creator>J7Mitch</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/845528.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=845528</wfw:commentRss><description>&lt;br /&gt;
That should work because you are sending to a dnn tab in the app.
&lt;br /&gt;
The HTTP Module works on application_begin request it's not looking for a specific page.
&lt;br /&gt;

&lt;br /&gt;
The LookFor is a Regexp so try adding a backslash in front of that last period.
&lt;br /&gt;

&lt;br /&gt;
&amp;lt;LookFor&amp;gt;/state_cup/default\.asp&amp;lt;/LookFor&amp;gt; 
&lt;br /&gt;
&amp;lt;SendTo&amp;gt;/default.aspx?TabID=67&amp;lt;/SendTo&amp;gt; 
&lt;br /&gt;</description></item><item><title>Re: Migrating from NON-DNN site to DNN website And keep old urls</title><link>http://forums.asp.net/thread/845517.aspx</link><pubDate>Thu, 03 Mar 2005 05:04:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:845517</guid><dc:creator>jhenak</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/845517.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=845517</wfw:commentRss><description>Our Old site has a page under /state_cup/default.asp
&lt;br /&gt;

&lt;br /&gt;
so under DNN in the SiteURL.config file I added (with the proper syntax and spelling of course.)
&lt;br /&gt;

&lt;br /&gt;
&amp;lt;LookFor&amp;gt;/state_cup/default.asp&amp;lt;/LookFor&amp;gt;
&lt;br /&gt;
&amp;lt;SendTo&amp;gt;/default.aspx?TabID=67&amp;lt;/SendTo&amp;gt;
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
And when I browse to http://dnn.mysite.com/state_cup/default.asp I get the 404 page does not exist error.
&lt;br /&gt;

&lt;br /&gt;
How does the URL module Intercept the request?  If it is not looking for an ASP.net page how can an ASP.net handler redirect it? My question is should it work, and if so then I will keep at it.  If not then I'll go to another component.</description></item></channel></rss>