?
Solved

htaccess redirect

Posted on 2001-09-02
3
Medium Priority
?
215 Views
Last Modified: 2008-01-09
I am thinking of moving my site from my ISPs server (homepages.enterprise.net/dan) to a domain (dankarran.com) with the exception of a file (eg myfile.shtml) and a directory (cgi-bin)

Everything else I would like to be redirected to my new address. The code I am starting with is:

RedirectMatch /dan/(.*) http://www.dankarran.com/$1

But how do I exclude from that, the file and directory named above?


Cheers...
0
Comment
Question by:dankarran
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 400 total points
ID: 6450128
AFAIK, can only be done by using Apache's ScriptAlias and Alias functionality
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Loops Section Overview
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month16 days, 8 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question