![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
I have searched different search engines but could not find anything on this.... :-?
I even tried Microsoft's Knoweledge Base..... ![]() Say I have a website listed at http://www.websitename.domainname hosted on IIS 5.0 and I have a folder called "folder1" which has a index.htm file. For some odd reasons, I have to rename "folder1" as "folder2" .... Most search engines I have submitted my website have the following link... http://www.websitename.domainname/folder1 How do I automatically redirect a request directly, if the user clicks on the above link in the search engine ? |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Feb 2006
Location: Columbus, OH
Posts: 84
Rep Power: 3
![]() |
<head>
<META HTTP-EQUIV="Refresh"
CONTENT="0; URL=http://redirect.to.your.website.com">
</head> |
|
|
|
|
|
#3 | |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
Quote:
But I suppose, you did not understand my question clearly. In other words, this is not the answer to my question. |
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Instruct your server to redirect it. For instance, if you surf to http://www.dawei.biz you will find yourself at http://www.daweidesigns.com.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 | |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
Quote:
with ASP...? |
|
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Whadda ya want? Egg in your beer?
![]()
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 | |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
Quote:
I have renamed a folder called "folder1" to "folder2". Now, each search engine has a link called http://www.websitename.domainname/folder1 and on clicking on this link, the server will return a 404 error. Though the page, you have linked me to, mentions about indicating the user what error has occured in a friendly manner and redirect him, to the home page, I think, the server should automate the process of redirecting to appropriate "NEW" pages when there is a 404 error. like abc.htm was deleted, and instead of it is pqr.htm so when a request for abc.htm is made, it should automatically redirect to pqr.htm I hope, now you know what I want! |
|
|
|
|
|
|
#8 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3
![]() |
It seems like you want to have abc.htm redirect to pqr.htm... What's wrong with having a page that just redirects?
|
|
|
|
|
|
#9 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Why not construct an ASP page to send a 301 redirection to the client when they request a file from folder1?
|
|
|
|
|
|
#10 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You seem to delight in indicating that people didn't read your question. That's pure horse hockey, which is not the same as donkey baseball. On the other hand, perhaps you should read the material provided, and I quote:
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|