473,659 Members | 2,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redirect or Rewrite

In the transition of a website from one domain to the other I would
like to "rewrite" http://www.myoldsite.com/dir1/conten...aspx?p1=1&p2=2
into http://www.mynewsite.com/dir1/conten...aspx?p1=1&p2=2
Can it be done with Rewrite methods of HTTPContext class or it has to
be done with Response.Redire ct? If it can be done with Rewrite, can
someone show me simple code?
Thanks

Jul 30 '07 #1
0 1143

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

Similar topics

1
3818
by: JDJones | last post by:
We are trying to set up a PHP page to handle server requests for individual web pages that we are moving to a new server. The part that complicates this procedure is that the files will not be mirrored on the new server. Instead many will be residing in new directories and subdirectories than they were in on the old server. What we wanted to do was when someone requested a specific page from our old server, it would recognize the...
0
1259
by: Danny | last post by:
I am trying to do the similar to mod rewrite and use the custom 404 rewrite page to handle the table look up, so www.myweb.com/irish-tapestry-333.html will redirect to www.myweb.com?id=333 for the detail pages. Will google see this forwarding in the 404 redirect page and ignore the links? Also, how can I make the URL of www.myweb.com/irish-tapestry-333.html
2
537
by: Hymer | last post by:
Hello, I have a page that was redirected to the same page with a new URL a few years ago. I now want to assign a new URL and redirect to the new page. The first redirect is: Redirect permanent /safety.html http://www.usernomics.com/safety-ergonomics.html
13
2096
by: Stephen Kay | last post by:
Is there a way to redirect every single page on an existing web site through a php function? In other words, say I have a whole functional HTML web site, never written to use any php. Now I would like to have a php function handle displaying every page, for example, instead of: http://www.mysite.com/mypage.html you would call:
5
4995
by: deko | last post by:
I'm trying to redirect requests for /index.php to /mydirectory/index.php If I use an index file in / with only this line: <?php header("Location:http://www.mysite.com/mydirectory/"); ?> that seems to work. But can this be accomplished more efficiently with an htaccess rewrite?
5
6038
by: David | last post by:
Hi all, Using C#.NET 1.1 I am progressing on my URL ReWriting quite well, but have a slight problem. My server will not have real paths, just virtual, which is generated from a database. This will include images, documents etc. (The images will map (URL ReWrite) to real images of a different name.)
4
1475
by: myalo | last post by:
In the transition of a website from one domain to another for exmaple from www.oldsite.com to www.newsite.com I need to "rewrite" the URL so all links to the old site will be linked to the new site as follows: 1. For URLs that reference pages: Change http://www.oldsite.com/dir1/content/content.aspx?p1=1&p2=2 into http://www.newsite.com/dir1/content/content.aspx?p1=1&p2=2 2. For URLs that reference sub domains: Change...
10
9014
by: Eirik Eldorsen | last post by:
How can I 301 redirect www.example.com/default.aspx to www.example.com without using ISAPI filters?
3
2173
by: Gozil | last post by:
hello, I have been looking for a solution to redirect the users to the correct urlrewrite page but I cant come up with anything thats working. This is how I rewrite it now: RewriteRule ^(search)/(.*)$ search.php?id=$2 so basically the user could search like this: search/something the problem is that I need to redirect them from search.php?id=something to search/something
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8339
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8535
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8629
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.