mod_rewrite .htaccess problem

Posted on 2006-03-28
Last Modified: 2012-06-27

System: Windows 2000 Server with Apache 1.3.33 PHP 4.4.0

I added a .htaccess file to one of my subdirectories with a mod_rewrite rule which worked perfectly.
I then deleted the file .htaccess, re-tested the page and the rule was still working!
I have subsequently rebooted the server twice, done a search of the entire hard disk for the .htaccess incase I did not delete it. I cannot find it.

I have no tried adding a new .htaccess file to the same directory with a different rule. But that rule does not work and the old one still takes effect.

Has anyone come across this problem before?

Question by:Nermal
    LVL 27

    Expert Comment

    Did you clear the browser cache, too?
    LVL 1

    Author Comment

    I have even tried on multiple machines.

    LVL 15

    Accepted Solution

    Have you checked the website configuration file to see if Overrides are allowed?  Is there a rule in the httpd.conf file that is taking precedence?
    LVL 23

    Expert Comment


    Look at here, it may help you.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    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…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now