/    Sign up×
Community /Pin to ProfileBookmark

htaccess alternative

Can anybody recommend method of creating global redirecting scripts other than htaccess?

We currently use htaccess to direct visitors who try and access pages which have been deleted or renamed to a page which gives them a list of alternatives. htaccess is also useful for globally directing visitors to a temporary page during development by typing one line of code we can avoid updating sitwide links to a single page.

We want to be able to run a similar script from a windows server because we need full support for asp too, and it is apparently impossible to run these htaccess redirecting scripts on a windows server. (a linux server won’t support all of the asp functionality that we need).

Thank You.
Simon Neaves.

to post a comment
Full-stack Developer

5 Comments(s)

Copy linkTweet thisAlerts:
@scragarMay 04.2005 — if you've got asp then you can redirect people at the drop of a hat:

response.redirect "Full URL to target"

but this only works if they go to a page with that code in.
Copy linkTweet thisAlerts:
@MstrBobMay 04.2005 — You know, I've heard of a number of projects to provide ASP support for Apache. You might want to look into that.
Copy linkTweet thisAlerts:
@ray326May 05.2005 — if you've got asp then you can redirect people at the drop of a hat:

response.redirect "Full URL to target"

but this only works if they go to a page with that code in.[/QUOTE]

So that's not relevant to what he asked, eh?
Copy linkTweet thisAlerts:
@ray326May 05.2005 — We want to be able to run a similar script from a windows server because we need full support for asp too, and it is apparently impossible to run these htaccess redirecting scripts on a windows server.[/QUOTE]You don't really mean "Windows" and "Linux" you mean "IIS" and "Apache". I think the best you can do in IIS (and it may be all you require) is to configure the "custom error pages". I believe that works globally for the server and each app can override the global settings.
Copy linkTweet thisAlerts:
@MstrBobMay 05.2005 — I don't know much about it, but perhaps [URL=http://www.isapirewrite.com/]ISAPI_Rewrite[/URL] might be of some interest? I hear it's supposedly similar to Mod_Rewrite, but I don't work with IIS so I couldn't tell you.
×

Success!

Help @simonneaves spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...