Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > ASP, ASP.NET and Coldfusion

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

ASP, ASP.NET and Coldfusion Microsoft's Web Development Language (ASP/ASP.NET) and Coldfusion discussion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-2006, 08:33 PM
Dan Dan is offline
Programmer
 
Join Date: Jun 2006
Posts: 145
Credits: 0
Rep Power: 9
Dan is on a distinguished road
Default The Ultimate ASP/ASP.net 301 direct/forwarding thread!

If you don't know what a ASP/ASP.net 301 redirect is, you will by the end of this thread! If you need to redirect a page, unfortunately it isn't as simple as using one of the various methods - only the 301 redirect will preserve search engine rankings for the page. It is the most efficient, search engine friendly method for website redirection - the code 301 is interpreted as "moved permanently".

ASP 301 Redirect Code:

Code:
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently" Response.AddHeader "Location", " http://www.new-url.com"
>
ASP.net 301 Redirect Code:

Code:
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");
}
</script>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 06-29-2006, 03:39 PM
NeedHelp NeedHelp is offline
Programming God
 
Join Date: May 2006
Posts: 527
Credits: 0
Rep Power: 12
NeedHelp is on a distinguished road
Default

You have to have ASP.NET to use this, correct? Can you get ASP.NET to work in Linux? My server is linux and I know very little about it.
__________________
I Need Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-29-2006, 06:53 PM
Dan Dan is offline
Programmer
 
Join Date: Jun 2006
Posts: 145
Credits: 0
Rep Power: 9
Dan is on a distinguished road
Default

Quote:
Originally Posted by NeedHelp
You have to have ASP.NET to use this, correct? Can you get ASP.NET to work in Linux? My server is linux and I know very little about it.
I'm not going to say it cannot be done, as that would contradict one of my fav. philosophies "never say never". However, it would be more difficult to get asp (microsoft) to work on a linux server.

I would recommend a PHP 301 redirect, or even a HTML one!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-08-2007, 02:33 PM
jedik's Avatar   
jedik jedik is offline
Newbie
 
Join Date: Jan 2007
Posts: 13
Credits: 0
Rep Power: 0
jedik is on a distinguished road
Default

Quote:
Originally Posted by Dan View Post
I'm not going to say it cannot be done, as that would contradict one of my fav. philosophies "never say never". However, it would be more difficult to get asp (microsoft) to work on a linux server.

I would recommend a PHP 301 redirect, or even a HTML one!

I do not think so. If you really want to host a ASP.NET code or snippet in your Linux server just make sure you have the latest .NET framework and the Apache or anyother web server and then configure the ports properly. Thats all.

But ASP codes are less eligible to run on a Linux Server.

And by the way this entire process is going to cost a lot of time. SO it is highly recommended to do a PHP redirect for it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
thread problem dirkfirst C# Programming 9 01-15-2007 09:19 AM
The Ultimate PHP 301 direct/forwarding thread! Dan PHP Forum 6 07-08-2006 03:16 PM
The ultimate xHTML / DHTML / HTML 301 redirection thread! Dan HTML Programming 5 07-04-2006 05:57 PM
The Ultimate Codefusion 301 direct/forwarding thread! Dan ASP, ASP.NET and Coldfusion 0 06-28-2006 08:28 PM
The Ultimate HTML/xHTML/DHTML 301 direct/forwarding thread! Dan HTML Programming 0 06-28-2006 07:58 PM


All times are GMT -5. The time now is 11:12 PM.

Contest Stats

Xav ........ 1276.19
MeTh0Dz|Reb0rn ........ 1048.58
marwex89 ........ 869.98
morefood2001 ........ 868.04
John ........ 865.15
WingedPanther ........ 761.06
Brandon W ........ 684.87
chili5 ........ 294.12
Steve.L ........ 216.18
dargueta ........ 192.86

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 81%

Ads