I have a couple of subdirectories off my domain that are no longer valid, as they've been moved elsewhere, to the root directory or just deleted.
I was trying to put in a 301 redirect via .htaccess to point the non existant directories back to the root website, or another relevant directory. However when I keep going to the old URL, I still get the 403 error and it doesn't redirect anywhere.
For example lets take
http://www.domain.com/gallery/ I've tried to put in a 301 redirect back to just
http://www.domain.com using the following methods;
RewriteRule ^/gallery$ /
or
RewriteRule ^/gallery/$ /
or
Redirect /gallery
http://www.domain.com/
or
Redirect permanent /olddirectory
http://www.domain.com/
I'm running Apache 1.3.33 on Debian and I know mod_rewrite is installed because I use a rewrite for wgets to an google search.
What am I missing?