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 02-20-2008, 06:24 PM
PaulMycroft's Avatar
PaulMycroft PaulMycroft is offline
WebProWorld Member
 

Join Date: Jul 2007
Location: Ladysmith, BC, Canada
Posts: 47
PaulMycroft RepRank 1
Default 301 redirect from .html to .asp

Hi all,

On an IIS web server, how do I do a 301 redirect from page.html (old page) to page.asp (new page)?

I do not have access to the Internet Services Manager. Can I use .htaccess?

Otherwise, I'll have to use... meta refresh! ;(

Thanks!
__________________
All the best,
Paul Mycroft
Professional Web Design
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 08:21 PM
stock stock is offline
WebProWorld New Member
 

Join Date: Oct 2007
Posts: 2
stock RepRank 0
Default Re: 301 redirect from .html to .asp

You need a url rewriter such as IIS mod-rewrite which enables .htaccess on IIS. You can use rules like below to do 301 redirects

RewriteEngine On
RewriteRule ^old_page\.html$ /new_page.html [R=301,L]

But I guess you are on a shared hosting, so installing such a tool may not be an easy procedure.

Unfortunatelly, using meta refresh is not a 301 redirect and you have no SEO benefit
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 10:04 PM
incrediblehelp's Avatar
incrediblehelp incrediblehelp is offline
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,418
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: 301 redirect from .html to .asp

Can you use ISAPI or do they have it installed on the server?

have you asked your host about the situation?
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 06:35 AM
PaulMycroft's Avatar
PaulMycroft PaulMycroft is offline
WebProWorld Member
 

Join Date: Jul 2007
Location: Ladysmith, BC, Canada
Posts: 47
PaulMycroft RepRank 1
Default Re: 301 redirect from .html to .asp

Hi guys,

Thanks for your replies.

I was already aware of the ISAPI but am going to have to check with the host. Shame it's not as easy as.htaccess. ;(
__________________
All the best,
Paul Mycroft
Professional Web Design
Reply With Quote
Reply

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


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
HTML Validator is a Mozilla extension that adds HTML validat dougadam Graphics & Design Discussion Forum 3 02-10-2007 07:45 PM
301 Redirect from HTML to PHP garywhw Search Engine Optimization Forum 3 01-23-2007 01:31 AM
Changing Home page from HTML to PHP - Redirect question getmea Search Engine Optimization Forum 34 09-11-2006 06:10 PM
HTML Redirect Pages bobitza Search Engine Optimization Forum 2 04-20-2006 05:04 PM
How to Redirect .php pages to .html page? How to continue sa Rohit_Malhotra Google Discussion Forum 3 10-21-2004 01:21 AM


Search Engine Friendly URLs by vBSEO 3.0.0