Solved

htaccess redirect

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

12 Experts available now in Live!

Get 1:1 Help Now