473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Rewrite URL this way, is it possible?

We have a lot of legacy pages written in HTML or classic ASP. A lot
of our web users bookmarked these pages.

Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or
3.5.

I am using URLRewritingNet (http://www.urlrewriting.net/en/
Default.aspx) to redirect all requests in the format of *.htm, *.html
or *.asp to my asp.net pages. This is completely configured in
web.config.

This works great. But, we would also like to change the URL in the
browser's address bar from somepage.htm to somepage.aspx.

IMPORTANT: We are not allowed to explicitly do Response.Redirect.

Is there a way to do this? Please share your insights about this
issue. Thanks.
Jun 1 '08 #1
4 1915
On Jun 1, 9:53 am, Iaml <gnewsgr...@gmail.comwrote:
We have a lot of legacy pages written in HTML or classic ASP. A lot
of our web users bookmarked these pages.

Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or
3.5.

I am using URLRewritingNet (http://www.urlrewriting.net/en/
Default.aspx) to redirect all requests in the format of *.htm, *.html
or *.asp to my asp.net pages. This is completely configured in
web.config.

This works great. But, we would also like to change the URL in the
browser's address bar from somepage.htm to somepage.aspx.

IMPORTANT: We are not allowed to explicitly do Response.Redirect.

Is there a way to do this? Please share your insights about this
issue. Thanks.
Hi

seems you already touched the wall...
i am not sure whether it will help you or not but still

check out scott'g blog post on url rewrite

http://weblogs.asp.net/scottgu/archi...h-asp-net.aspx

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Jun 1 '08 #2
On Jun 1, 2:13 am, Munna <munna...@gmail.comwrote:
On Jun 1, 9:53 am, Iaml <gnewsgr...@gmail.comwrote:
We have a lot of legacy pages written in HTML or classic ASP. A lot
of our web users bookmarked these pages.
Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or
3.5.
I am using URLRewritingNet (http://www.urlrewriting.net/en/
Default.aspx) to redirect all requests in the format of *.htm, *.html
or *.asp to my asp.net pages. This is completely configured in
web.config.
This works great. But, we would also like to change the URL in the
browser's address bar from somepage.htm to somepage.aspx.
IMPORTANT: We are not allowed to explicitly do Response.Redirect.
Is there a way to do this? Please share your insights about this
issue. Thanks.

Hi

seems you already touched the wall...
i am not sure whether it will help you or not but still

check out scott'g blog post on url rewrite

http://weblogs.asp.net/scottgu/archi...rick-url-rewri...

Best of luck

Munnawww.munna.shatkotha.comwww.munna.shatkotha.co m/blogwww.shatkotha.com
Thank you. I have read Scott's blog on that topic. Actually, I got
to know about URLRewritingNet from his blog.

Anyone else would like to give me a little hint?
Jun 1 '08 #3
This works great. But, we would also like to change the URL in the
browser's address bar from somepage.htm to somepage.aspx.

IMPORTANT: We are not allowed to explicitly do Response.Redirect.

Is there a way to do this?
A javascript re-direct, other than that it's impossible.
Jun 2 '08 #4
On Jun 1, 4:53 am, Iaml <gnewsgr...@gmail.comwrote:
We have a lot of legacy pages written in HTML or classic ASP. A lot
of our web users bookmarked these pages.

Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or
3.5.

I am using URLRewritingNet (http://www.urlrewriting.net/en/
Default.aspx) to redirect all requests in the format of *.htm, *.html
or *.asp to my asp.net pages. This is completely configured in
web.config.

This works great. But, we would also like to change the URL in the
browser's address bar from somepage.htm to somepage.aspx.

IMPORTANT: We are not allowed to explicitly do Response.Redirect.

Is there a way to do this? Please share your insights about this
issue. Thanks.
To change the URL in the browser you want to send a redirect, if you
send a 301 HTTP Code ("Moved Permenantly") then search engines etc can
update their links to follow the new version.

Looking at the docs for UrlRewritingNet it looks like this is
supported, something like:
<urlrewritingnet>
<rewrites ... redirect="Application" redirectMode="Permanent" ... >
....
</rewrites>
</urlrewritingnet>
Jun 2 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Stefan Reiter | last post by:
Hi, I got a totally dynamic website, and to improve my search engine results, I would like to use mod rewrite. From what I've understood so far, I have to put the necesarry lines into my...
0
by: Michel | last post by:
Hi there, Is it possible to rewrite a given (absolute) url with the session id of the user? And furthermore, will ASP.NET understand this even though session ids are handled by cookies? The...
1
by: john_turman | last post by:
I have the SDK and API Libraries of XXX. The programming guide states: " An XXX program using the XXX Libraries should be compiled with Microsoft Visual C++ Version 6.0. The XXX program will...
2
by: Max2006 | last post by:
Hi, I am using a asp.net hosting service and I don't have access to IIS MMC. I would like to implement a URL rewriting service so all urls with shape: http://domainname.com/nnnn.jpeg get...
18
chunk1978
by: chunk1978 | last post by:
hi everyone. i just started learning how to dynamically show/hide elements with a checkbox toggle. i would like to know if it's possible to delete/rewrite elements instead of simply show/hide...
4
by: mainargv | last post by:
hi How do you rewrite codes with " ... va_list va_start va_etc", so that simple c compiler don't have to deal with them. I have written a simple c->verilog compiler but it can't deal with...
10
by: not_a_commie | last post by:
I've seen studies before showing that it is better to rewrite code when more than 25% (or whatever) of the code needs to be changed. I can't seem to locate any references for that at the moment. Do...
5
by: Iaml | last post by:
We have a lot of legacy pages written in HTML or classic ASP. A lot of our web users bookmarked these pages. Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or 3.5. I am...
3
by: aag | last post by:
Hey there! I've got an URL rewrite issue that I'm wondering if the masters out there can help with :) I have a site that resides at (for example) foo.com - it's a full site with tons of pages...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.