rumblepup
01-08-2007, 06:47 PM
Hello everyone. I found these forums looking when the other forums where just not paying attention to me. What I found is that you guys actually communicate, if at least to say, "I don't no, but you can try this"
In any case, here's my problem.
I have a website running an asp.net 1.1 e-commerce solution in the root. This application has no room for content management, so a created a sub-folder called more/, and installed a CMS called DotNetNuke.
I've decided to move to a different application, for performance purposes, and for web search purposes as well. I know how to do a redirect in asp.net, so I figured that I'd do it hardball style and actually create folders and pages that corresponded to the originals, and just pop in a 301 redirect to the new application pages, as they corresponded.
In other words, those DNN pages that had a url of more/HelpFAQ/tabid/56/Default.aspx, as was going to create a folder called 56, inside of a folder called tabid, inside of a folder called HelpFAQ, and stick a default.aspx page in there with a 301 redirect to the new url and corresponding page.
I know, this method might seem very dumb, but easy to understand and easy to implement.
However, my dnn application has some other, WEIRD urls. For instance
more//OutdoorFabrics/SuggestedFabricCombinations/tabid/54/AlbumID/417-22/Default.aspx
In bold, you can see that heres a url that looks like there is a folder with no name. You can't do that.
I was hoping to find an asp.net script, preferably VB 1.1, that will do the following.
just one default.aspx page in the more/ folder, with an argument that says
If uri = more/HelpFAQ/tabid/56/Default.aspx
Then 301 redirect to (new page)
If uri - more//OutdoorFabrics/whatever/default.aspx
Then 301 redirect to (new page)
I found this code:
If InStr(Request.Url.AbsoluteUri, "www") = 0 Then
Response.Status = "301 Moved Permanently";
Response.AddHeader("http://www.yoursite.com" & Request.RawUrl)
End If
So I'm wondering if I could use it like this
If InStr(Request.Url.AbsoluteUri, "www") = http://www.cushionsandumbrellas.com/more//OutdoorFabrics/SuggestedFabricCombinations/tabid/54/AlbumID/417-5/Default.aspx
Then
Response.Status = "301 Moved Permanently";
Response.AddHeader("http://articles.cushionsandumbrellas.com/outdoor-fabric-417.aspx" & Request.RawUrl)
End If
Any help would be appreciated.
In any case, here's my problem.
I have a website running an asp.net 1.1 e-commerce solution in the root. This application has no room for content management, so a created a sub-folder called more/, and installed a CMS called DotNetNuke.
I've decided to move to a different application, for performance purposes, and for web search purposes as well. I know how to do a redirect in asp.net, so I figured that I'd do it hardball style and actually create folders and pages that corresponded to the originals, and just pop in a 301 redirect to the new application pages, as they corresponded.
In other words, those DNN pages that had a url of more/HelpFAQ/tabid/56/Default.aspx, as was going to create a folder called 56, inside of a folder called tabid, inside of a folder called HelpFAQ, and stick a default.aspx page in there with a 301 redirect to the new url and corresponding page.
I know, this method might seem very dumb, but easy to understand and easy to implement.
However, my dnn application has some other, WEIRD urls. For instance
more//OutdoorFabrics/SuggestedFabricCombinations/tabid/54/AlbumID/417-22/Default.aspx
In bold, you can see that heres a url that looks like there is a folder with no name. You can't do that.
I was hoping to find an asp.net script, preferably VB 1.1, that will do the following.
just one default.aspx page in the more/ folder, with an argument that says
If uri = more/HelpFAQ/tabid/56/Default.aspx
Then 301 redirect to (new page)
If uri - more//OutdoorFabrics/whatever/default.aspx
Then 301 redirect to (new page)
I found this code:
If InStr(Request.Url.AbsoluteUri, "www") = 0 Then
Response.Status = "301 Moved Permanently";
Response.AddHeader("http://www.yoursite.com" & Request.RawUrl)
End If
So I'm wondering if I could use it like this
If InStr(Request.Url.AbsoluteUri, "www") = http://www.cushionsandumbrellas.com/more//OutdoorFabrics/SuggestedFabricCombinations/tabid/54/AlbumID/417-5/Default.aspx
Then
Response.Status = "301 Moved Permanently";
Response.AddHeader("http://articles.cushionsandumbrellas.com/outdoor-fabric-417.aspx" & Request.RawUrl)
End If
Any help would be appreciated.