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 > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2005, 06:32 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: Montreal
Posts: 93
schmeetz RepRank 0
Default 301 redirect

Plz keep in mind i'm a noob at this.

I need to 301 redirect and i'm on IIS. I went from html to .asp.

I read around and noticed the following solution everywhere:

* In internet services manager, right click on the file or folder you wish to redirect
* Select the radio titled "a redirection to a URL".
* Enter the redirection page
* Check "The exact url entered above" and the "A permanent redirection for this resource"
* Click on 'Apply'

I asked my hosting company and they said "I am afraid we dont provide developer level support. server side canges are not allowed."

What are my noobish like options?

thanks in advanced
__________________
Schmeetz
Health Forum Canada
Reply With Quote
  #2 (permalink)  
Old 08-09-2005, 08:21 PM
WebProWorld Veteran
 

Join Date: Nov 2003
Location: Castle Rock, CO
Posts: 494
Corey Bryant RepRank 0
Default

Honestly, find a hosting company that would support this. Unfortunately, with it already being named HTML, you cannot put PHP or ASP code into the HTML that would re-direct it.

But I am a bit confused, re-directing it to an URL would basically mean re-directing the entire site / domain name
Reply With Quote
  #3 (permalink)  
Old 08-10-2005, 10:03 AM
WebProWorld Member
 

Join Date: Aug 2003
Location: Montreal
Posts: 93
schmeetz RepRank 0
Default new and old

Ok the new site is http://www.hiteklogistic.com. All the pages are now .asp. The old one is http://www.hiteklogistic.com/WhyUs.html.

I need to redirect (permanent) the traffic from the old pages to the new ones in a SE friendly way.

What are my optiions aside from changing settings on the server in IIS?
__________________
Schmeetz
Health Forum Canada
Reply With Quote
  #4 (permalink)  
Old 08-10-2005, 10:57 AM
WebProWorld Veteran
 

Join Date: Nov 2003
Location: Castle Rock, CO
Posts: 494
Corey Bryant RepRank 0
Default

So basically you changed whyus.html to whyus.asp, right?

If so - the hosting company needs to cooperate for the easiest solution. Afterall, you cannot insert an ASP 301 redirect code into an HTML page - unless you get the hosting company to parse your HTML as ASP pages as well.
Reply With Quote
  #5 (permalink)  
Old 08-10-2005, 11:08 AM
WebProWorld Member
 

Join Date: Aug 2003
Location: Montreal
Posts: 93
schmeetz RepRank 0
Default hosting company

Hi Corey,

This hosting company gave me the following responce

'We don't handle these redirects, customer can use his own scripts for redirection.'

Since i am not technical i have no rebuttal.

what are my options now?
__________________
Schmeetz
Health Forum Canada
Reply With Quote
  #6 (permalink)  
Old 08-10-2005, 11:15 AM
WebProWorld Veteran
 

Join Date: Nov 2003
Location: Castle Rock, CO
Posts: 494
Corey Bryant RepRank 0
Default

You can use a 302 redirect because you are using HTML. But a 302 re-direct might harm you.

You really do not have recourse - except hope that the SEs will pick up the new pages quickly or change hosts.
Reply With Quote
  #7 (permalink)  
Old 08-10-2005, 11:24 AM
WebProWorld Member
 

Join Date: Aug 2003
Location: Montreal
Posts: 93
schmeetz RepRank 0
Default

thanks for nothing Cory!

just kidding....i really appreciate your help.

cheers
__________________
Schmeetz
Health Forum Canada
Reply With Quote
  #8 (permalink)  
Old 08-10-2005, 11:32 AM
WebProWorld Veteran
 

Join Date: Nov 2003
Location: Castle Rock, CO
Posts: 494
Corey Bryant RepRank 0
Default

I wished I could have been of more help but I do not want to give you code that might get you banned from the Search Engines.

It is too bad though that your hosting company will not work with you on that. It takes only five minutes to do the changes - I know, we have done it before. But a lot of the larger hosting companies have more regulations in place that prohibit the employees from changing internal server settings
Reply With Quote
  #9 (permalink)  
Old 08-10-2005, 12:33 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: Montreal
Posts: 93
schmeetz RepRank 0
Default shame

yeah..what a shame. From now on i go with Linux.
__________________
Schmeetz
Health Forum Canada
Reply With Quote
  #10 (permalink)  
Old 08-10-2005, 12:48 PM
WebProWorld Veteran
 

Join Date: Nov 2003
Location: Castle Rock, CO
Posts: 494
Corey Bryant RepRank 0
Default

Just curious - ask them if they support ISAPI re-write. A lot of websites actually do that as well - I forgot about that program, but that would work
Reply With Quote
  #11 (permalink)  
Old 08-10-2005, 02:42 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: Montreal
Posts: 93
schmeetz RepRank 0
Default .asp to .asp

Ok i sent them the request.

What if is was a .asp site and i wanted to change the names. You said before I could place something directly in the .asp code to 301 redirect?

Could you give me an example?
__________________
Schmeetz
Health Forum Canada
Reply With Quote
  #12 (permalink)  
Old 08-10-2005, 02:54 PM
WebProWorld Veteran
 

Join Date: Nov 2003
Location: Castle Rock, CO
Posts: 494
Corey Bryant RepRank 0
Default

It would be:
Code:
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently" 
Response.AddHeader "Location", "http://www.example.com/otherpage.asp"
%>
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming 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


Search Engine Optimization by vBSEO 3.2.0