Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
access audio blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor network networking outlook problem processor ram recovery router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
301 redirect on windows .shtml

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
amanxman's Avatar
Senior Member with 655 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
22-Oct-2009, 03:28 PM #1
301 redirect on windows .shtml
Hey,

I am looking to 301 redirect a bunch of old pages (.shtml) to the new index.html (same server).

However as it's on a windows server, .htaccess won't work (I don't have any shell or root access to amend conf etc either unfortuantly).

The .asp 301 redirect isn't much help either as the pages requiring the 301 are .shtml.

I've temporarily used meta redirect on each old page, but this isn't ideal... is there anyway to perform a 301 redirect on .html (.shtml) pages on a window server?

Cheers in advance
__________________
It deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht frist and lsat ltteer is at the rghit pclae. Tihs is bcuseae we do not raed ervey lteter by it slef but the wrod as a wlohe.
--------------
RB Web Works
maneetpuri's Avatar
Member with 67 posts.
 
Join Date: Oct 2008
23-Oct-2009, 09:12 AM #2
Hi,

Implementing such redirects is always a problem on Windows server. But as you are using shtml and if your server allows server side includes then you can include a .asp file in your .shtml pages and in it you can write the code for 301 redirect. You can also try including a CGI script if your server allows that.

Hope this works for you!

Cheers,

~Maneet
__________________
Maneet Puri
Lexolution IT Services
Web Development Company
Virtual Assistant Services
amanxman's Avatar
Senior Member with 655 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
23-Oct-2009, 01:50 PM #3
Quote:
Originally Posted by maneetpuri View Post
if your server allows server side includes then you can include a .asp file in your .shtml pages and in it you can write the code for 301 redirect.
Good idea, thanks
amanxman's Avatar
Senior Member with 655 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
25-Oct-2009, 02:43 PM #4
Nope, doesn't work - I think because by including the asp file, all we're doing is adding asp code into a .shtml file... so no luck there...

Anyone know of any other 301 redirect for html?

Cheers
Reply Bookmark and Share

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 03:17 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.