There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
acer audio bios boot bsod compaq computer connection crash dell driver drivers email error excel firefox freeze hard disk hard drive hardware hijackthis internet laptop linksys macro malware network outlook outlook 2003 outlook 2007 password problem recovery redirect server slow sound trojan upgrade usb video virus vista windows windows 7 windows vista windowsxp windows xp wireless youtube
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 ]

Closed Thread
 
Thread Tools
amanxman's Avatar
Senior Member with 663 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
22-Oct-2009, 02: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 76 posts.
 
Join Date: Oct 2008
23-Oct-2009, 08: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
Web Development Company
Virtual Assistant Services
amanxman's Avatar
Senior Member with 663 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
23-Oct-2009, 12: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 663 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
25-Oct-2009, 01: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
Closed Thread Bookmark and Share   techguy.org/870758

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

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 04:02 AM.
Copyright © 1996 - 2010 TechGuy, Inc. All rights reserved.
Powered by Cermak Technologies, Inc.