Solved

htaccess redirect

Posted on 2001-09-02
3
204 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
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Redirect from old domain to new domain 19 71
Website being blocked? 3 122
PHP Upload using Uploadify 4 71
setup wamp server for first time 2 44
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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now