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 acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu hard drive hardware hdmi internet laptop malware memory missing monitor motherboard network operating system printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
301 redirect on windows .shtml

Reply  
Thread Tools
amanxman's Avatar
Senior Member with 690 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
22-Oct-2009, 04: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 124 posts.
 
Join Date: Oct 2008
23-Oct-2009, 10: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
amanxman's Avatar
Senior Member with 690 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
23-Oct-2009, 02: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 690 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
25-Oct-2009, 03: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

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:40 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.