Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 06-09-2009, 03:32 AM   #1 (permalink)
Jul
Contributing Member
 
Join Date: 09-11-07
Posts: 101
iTrader: 0 / 0%
Latest Blog:
None

Jul is liked by many
Question 301 redirect on IIS shared hosting

Hi,

All of my web pages have .html extension. I want to make all URL's without file-extension. For that reason, I'm going to create a sub directory and place index.html for each of my HTML web pages.

I have a shared hosting plan on IIS server. How can I 301 redirect an HTML page to a new location without dedicated hosting?

Thanks in advance!
__________________
Israel Tours Online | Israel in photos
---------------------------------------------------
Jul with respect.
Jul is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-09-2009, 09:22 AM   #2 (permalink)
Contributing Member
 
kellogg9's Avatar
 
Join Date: 06-03-09
Posts: 72
iTrader: 0 / 0%
kellogg9 is liked by many
I was going to give you a step-by-step but then i found this great article with pictures that walks you through it...enjoy: http://www.highposition.net/301-redirect-tutorial-iis/

Last edited by kellogg9; 06-09-2009 at 09:27 AM..
kellogg9 is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-09-2009, 12:23 PM   #3 (permalink)
Jul
Contributing Member
 
Join Date: 09-11-07
Posts: 101
iTrader: 0 / 0%
Latest Blog:
None

Jul is liked by many
Quote:
Originally Posted by kellogg9 View Post
I was going to give you a step-by-step but then i found this great article with pictures that walks you through it...enjoy: http://www.highposition.net/301-redirect-tutorial-iis/
Hi kellogg9,

The sad thing is that I don't have a dedicated server. My site is hosted on a shared server. I don't have access to server configurations. Or, am I missing something?

Nice tutorial though
__________________
Israel Tours Online | Israel in photos
---------------------------------------------------
Jul with respect.
Jul is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-09-2009, 01:07 PM   #4 (permalink)
Contributing Member
 
Join Date: 01-16-09
Posts: 106
iTrader: 0 / 0%
atlantadentalcenter is liked by somebodyatlantadentalcenter is liked by somebodyatlantadentalcenter is liked by somebody
I don't know if you can do that if you don't have a dedicated server. I ran into this same problem. What I did was talk to my hosting company about it and they suggested I buy some sort of mod for IIS and they would install it and that would allow me to do that. I ended up just getting a Apache sever and moved a few sites over to that but also had them manually enter in a few 301 redirects into the IIS for a few sites I left on there.

I forget what the name of the mods for IIS are but you could search Google for some sort of URL Rewrite mod for IIS and I'm sure you'll find it.
__________________
Providing kind, caring and knowledgeable Atlanta Cosmetic Dentistry and Invisalign Atlanta.
atlantadentalcenter is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-10-2009, 11:05 PM   #5 (permalink)
Jul
Contributing Member
 
Join Date: 09-11-07
Posts: 101
iTrader: 0 / 0%
Latest Blog:
None

Jul is liked by many
Quote:
Originally Posted by atlantadentalcenter View Post
I ended up just getting a Apache sever and moved a few sites over to that but also had them manually enter in a few 301 redirects into the IIS for a few sites I left on there.
Thank you atlantadentalcenter,

Indeed, it looks easier to move the site from IIS to Linux; I think that I'll go for it. Is there anything I have to take into account so this operation wouldn't hurt my site in SE's?
__________________
Israel Tours Online | Israel in photos
---------------------------------------------------
Jul with respect.
Jul is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-12-2009, 08:35 AM   #6 (permalink)
Contributing Member
 
Join Date: 09-04-08
Posts: 232
iTrader: 3 / 100%
Latest Blog:
Panch Phoran powder

ZunuZunu is on the right pathZunuZunu is on the right path
Yep, linux is the best choice if you don't need ASP.

BTW, you can set 404.asp to do 301 redirect.

Read this to know how to use 301 redirect.

Add all the redirects in 404.asp file and set it as default 404 error handling file.

Then delete all html pages that you have set redirects.

that's it.

Now if someone try to view the html file, server will call 404.asp file as there is no such .html file. Then 404.asp file will send 301 redirect to the browser.

HTH.
__________________
Online Universities - Search colleges and universities in USA. All information is free!
ZunuZunu is online now  
Add Post to del.icio.us
Reply With Quote
Old 06-14-2009, 02:18 AM   #7 (permalink)
Jul
Contributing Member
 
Join Date: 09-11-07
Posts: 101
iTrader: 0 / 0%
Latest Blog:
None

Jul is liked by many
Quote:
Originally Posted by ZunuZunu View Post
Yep, linux is the best choice if you don't need ASP.

BTW, you can set 404.asp to do 301 redirect.

Read this to know how to use 301 redirect.

Add all the redirects in 404.asp file and set it as default 404 error handling file.

Then delete all html pages that you have set redirects.

that's it.

Now if someone try to view the html file, server will call 404.asp file as there is no such .html file. Then 404.asp file will send 301 redirect to the browser.

HTH.
Hi ZunuZunu,

Thank you for fresh and interesting solution. I'll check option deeper.
__________________
Israel Tours Online | Israel in photos
---------------------------------------------------
Jul with respect.
Jul is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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
SEO and ASP redirect - MS hosting with 1and1.com Shannon Coding Forum 5 06-27-2004 01:19 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 03:24 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.