473,396 Members | 2,030 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 1916
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.