Stupid Error

    Date: 03/15/07 (PHP Community)    Keywords: php, mysql, sql, apache

    Can someone point out what I am not seeing here?

    I am using WAMP (Winblows-Apache-MySQL-PHP) on a server that I am forced to work on. I uncommented the mod_rewrite line in httpd.conf.

    From php_info():

    Loaded Modules  
    
    core mod_win32 mpm_winnt http_core mod_so mod_php5 mod_actions mod_alias mod_asis 
    mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile
    mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_imagemap
    mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_userdir


    AllowOverride is set to All by default, which means that the server will indeed look for .htaccess files.

    To test, I set up a dummy .htaccess file, which is in the root dir:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^page/([A-Za-z-]+)$ /index.php?test=$1 [QSA,L]
    


    And the end result is a 404 error. I've tried every possible combo of rewrite syntax, rules, conditions, etc.

    Does anyone have any ideas here?? I've never tried mod_rewrite on winblows, but the OS shouldn't matter as long as I'm running Apache and not IIS.

    Source: http://community.livejournal.com/php/552343.html

« Unexpected EXPLAIN's... || Anomaly. »


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