Solved

htaccess redirect

Posted on 2001-09-02
3
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 51

Accepted Solution

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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 …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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