mod_rewrite problem

    Date: 07/17/05 (Apache)    Keywords: linux

    Update: There was an "AllowOverride None" in the httpd.conf that was preventing the .htaccess file from being used.


    Environment:

    • Fedora Core release 3 (FC3); Kernel 2.6.11-1.27_FC3smp on an i686
    • httpd-2.0.52-3.1 (the most recent RPM for FC3 that I can find)
    • I host a couple of personal sites on my server, handled as VirtualHosts in httpd.conf
    Problem: I've installed WordPress (v1.5.1.3) today and set up a VirtualHost (http://blog.henman.ca/) to point to it - all fine so far. I set up the Permalink Structure as "/%year%/%monthnum%/%day%/%postname%/" (their recommended format to end up with "http://blog.henman.ca/2005/07/16/sample-post/"); no errors reported and a .htaccess file was created in the blog's directory. Only thing is, when I click on the link for the first/test post I get a 404 error: "The requested URL /2005/07/16/hello-world/ was not found on this server."

    I've added a RewriteLog line to httpd.conf but the output just shows a lot of "pass through" entries and nothing else, which makes me wonder if mod_rewrite is installed/enabled - how can I tell? Everything I've read says it's installed by default and httpd.conf contains both "LoadModule rewrite_module modules/mod_rewrite.so" and "RewriteEngine on" - should there be anything else?

    I don't see any errors/warnings when I restart the httpd service. Oh, and I've checked that mod_rewrite.so exists. :)


    (Before anyone asks me to post the httpd.conf file, it's 1275 lines so it might be easier if you can be specific about which bits you want to see.)


    [Cross-posted to '[info]'fedora_linux.]

    Source: http://community.livejournal.com/apache/22550.html

« Apache's connections || Content Negotiation in... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home