Forum Moderators: phranque

Message Too Old, No Replies

Seems like .htaccess still be processed even after I deleted it

but only happens in root..

         

SaturnX

7:20 pm on Mar 17, 2006 (gmt 0)

10+ Year Member



Hey everyone,

My .htaccess file simply does a redirect from

www.site.com/article/56/

to

www.site.com/articles.php?id=56

So nothing overly complicated. However this morning, I uploaded a .htaccess file that would redirect three different links;

www.site.com/article/56/ > aritcles.php?id=56
www.site.com/media/56/ > media.php?id=56
www.site.com/news/56/ > news.php?id=56

this was fine, but I figured I only wanted it to work with articles, so I deleted the .htaccess file removed the news and media lines and reuploaded the file.

However even after uploading the NEW file the media and news links STILL work even though I removed them from my .htacces file?

The same thing DOES NOT happen if I keep this all contained within a test directory.

Does Apache cache redirects? Does anyone have any insight?

Thanks!

Mark

jdMorgan

8:21 pm on Mar 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Apache doesn't cache redirects, but your browser does -- flush your browser cache and try again.

Jim

SaturnX

2:14 am on Mar 19, 2006 (gmt 0)

10+ Year Member



I tried clearing cache as well as trying on another PC.

I've completely deleted the .htaccess file and the redirects that i specified are STILL working even with no .htaccess file.

Does anyone have any ideas?

Thanks!

Pfui

3:55 am on Mar 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you have any .htaccess files in any of the affected subdirectories?

SaturnX

1:05 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



Well now I feel like an idiot...

Everything's working fine, the reason I was getting this behaviour was because I was redirecting:

articles/45/

and I also have a script in the root, called articles.php, so without me knowing, it was actally the script that was being run as well as the .htaccess redirect.

Bah, thanks for the help everyone!

--Mark

Pfui

1:43 pm on Mar 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Mark, not to fret. This stuff can be so very tricky. Besides, you fixed your snafu and that's what counts -- and can feel pretty good, too:)