Forum Moderators: phranque

Message Too Old, No Replies

Deleted redirect directive still working

         

cschults

9:15 pm on Jun 9, 2008 (gmt 0)

10+ Year Member



I just deleted a redirect directive from my root .htaccess file, but the redirection is still working.

Here is how it was setup:

redirect /parent/child http://www.example.com/child/index.html

But I now have files in /parent/child. So, I deleted the redirect, but can't access my new files as the redirection is still happening -- even after clearing my browser's cache.

When I try to access:

http://www.example.com/parent/child/index.html

I get redirected to:

http://www.example.com/child/index.html/index.html

I'm used to working with mod_rewrite directives and not mod_alias. Any ideas for what to do? I'm running Apache 2.0. Should I be looking at mod_expires?

Chris

jdMorgan

9:23 pm on Jun 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Either you didn't completely flush your browser cache (forcing a reload is not the same thing -- you must clear the cache manually), or your host has some sort of "delayed upload" thing going on. Once that redirect directive is actually removed from your server config file (e.g. .htaccess), it ceases to be applied instantaneously.

Jim

cschults

4:53 pm on Jun 10, 2008 (gmt 0)

10+ Year Member



Mystery solved ... unbeknownst to me, there was a duplicate .htaccess file in the parent directory with the deleted redirect.