Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-30-2008, 12:48 PM
WebProWorld New Member
 

Join Date: Nov 2006
Location: Toronto
Posts: 19
aidan6969 RepRank 0
Default 301 Redirect for .aspx pages

I'm moving to a new joomla site tomorrow and I want to put 301 redirects on some of my highest ranking pages from my current .aspx site.

Here's my problem. I've found two scripts online that should work but don't:
ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.new-url.com/"
%>

ASP .NET Redirect
<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>

You can view a sample page I'd like to redirect here:

Leadership Articles | Organizational Improvement | Customer Service and Satisfaction redirecting to
Jim Clemmer - Free Articles/Excerpts

Any suggestions are appreciated.

Cheers,
Aidan
Reply With Quote
  #2 (permalink)  
Old 09-30-2008, 01:23 PM
caravan's Avatar
WebProWorld Member
 

Join Date: May 2006
Location: Preston, Lancashire, UK
Posts: 68
caravan RepRank 0
Default Re: 301 Redirect for .aspx pages

I use asp and the code you have shown for the asp redirect is the same as the code I use. If your old page is called oldpage.asp are you replacing the contents with the asp redirect code and sending it to the corresponding newpage.aspx page? I've used this code many times with no problems.
Reply With Quote
  #3 (permalink)  
Old 09-30-2008, 02:37 PM
WebProWorld New Member
 

Join Date: Nov 2006
Location: Toronto
Posts: 19
aidan6969 RepRank 0
Default Re: 301 Redirect for .aspx pages

It's actually redirecting to a joomla site which is php and it's on another server.
Reply With Quote
  #4 (permalink)  
Old 09-30-2008, 02:45 PM
WebProWorld New Member
 

Join Date: Nov 2006
Location: Toronto
Posts: 19
aidan6969 RepRank 0
Default Re: 301 Redirect for .aspx pages

I've replaced the code on www.clemmer.net/keynotes/Default.aspx with the following:

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.jimclemmer.com"
%>

And I'm getting an error:

"Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30800: Method arguments must be enclosed in parentheses."

What am I doing wrong?
Reply With Quote
  #5 (permalink)  
Old 09-30-2008, 06:44 PM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,732
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: 301 Redirect for .aspx pages

Have you tried ISAPI?
Reply With Quote
  #6 (permalink)  
Old 09-30-2008, 06:48 PM
WebProWorld New Member
 

Join Date: Nov 2006
Location: Toronto
Posts: 19
aidan6969 RepRank 0
Default Re: 301 Redirect for .aspx pages

Sadly I gave up and posted the job on a freelancer site.

Thanks for the suggestion though.

Cheers,
Aidan
Reply With Quote
  #7 (permalink)  
Old 09-30-2008, 06:57 PM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,732
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: 301 Redirect for .aspx pages

ok, sorry to hear.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Tags: ,



Thread Tools
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

vB 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
301 Redirect of many pages on IIS SEMMatt Search Engine Optimization Forum 3 08-14-2008 12:57 AM
aspx pages sujata Search Engine Optimization Forum 14 10-19-2005 04:43 PM
Using 301 Redirect for only a few pages - impact? nnowakow Search Engine Optimization Forum 4 01-15-2005 10:22 AM
Redirect pages MichelH Search Engine Optimization Forum 6 12-14-2004 06:50 AM
How do I redirect pages? gellnsh Graphics & Design Discussion Forum 2 09-07-2004 04:47 AM


Search Engine Optimization by vBSEO 3.2.0