SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1  
Old 12-18-2008, 11:24 AM
gennsearch's Avatar
gennsearch gennsearch is offline
SEO Junior and a half
 
Join Date: Oct 2006
Location: Toronto
Posts: 80 gennsearch is on a distinguished road
Send a message via MSN to gennsearch Send a message via Yahoo to gennsearch
301 redirect for asp.net

Working on a site that is asp.net and need to 301 a page.

I tried

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.example.com/new-page.asp");
}
</script>

but no luck with it so far,

my page is www.domain.com/existing-page.html

needs to go to www.domain.com/new-page.html
__________________
Genn Search
Reply With Quote
  #2  
Old 12-20-2008, 11:14 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,238 Paz has a spectacular aura aboutPaz has a spectacular aura about
Your source page needs to be have an asp extension for that code to work doesn't it? As I understand it you'll need to set up the redirect from an htm(l) page from IIS. Maybe you can try your hosting company?
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 02:27 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.