I'm trying to do a very basic per-directory mod_rewrite.

I have an old URL that points to a file that no longer exists:

http://www.bigblueball.com/im/msn/tab/default.asp

and I want to redirect that to it's replacement:

http://www.bigblueball.com/im/msn/tab/index.php

My /im/msn/tab/.htaccess file looks like this:

RewriteEngine on
RewriteBase /im/msn/tab
RewriteRule ^default\.asp$ index.php [L]

But doesn't work. I've tried fiddling with the ReWriteBase to no avail. What am I missing?

I should mention that I also have a .htaccess at my web root that works beautifully. Would this conflict with a directory level .htaccess file?

Anybody here know mod_rewrite?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.