Hi, I have recently got a new pc and have installed php/mysql and apache. Everything works fine except for the mod_rewrite. I have uncommented the "LoadModule rewrite_module modules/mod_rewrite.so" and added this:
<Directory "C:/htdocs"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks Includes ExecCGI # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> and my .htaccess looks like this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /competition/index.php [L,QSA] I used this .htaccess on my old machine without trouble but it doesn't seem to be budging here. The last messages from the log files are: Access Log: 127.0.0.1 - - [17/Jul/2010:17:53:50 +0100] "GET /competition/login HTTP/1.1" 404 215 Error Log: [Sat Jul 17 17:30:13 2010] [warn] module php5_module is already loaded, skipping [Sat Jul 17 17:30:13 2010] [notice] Digest: generating secret for digest authentication ... [Sat Jul 17 17:30:13 2010] [notice] Digest: done [Sat Jul 17 17:30:13 2010] [notice] Apache/2.2.15 (Win32) DAV/2 mod_ssl/2.2.15 OpenSSL/0.9.8m PHP/5.3.2 configured -- resuming normal operations [Sat Jul 17 17:30:13 2010] [notice] Server built: Mar 4 2010 11:27:46 [Sat Jul 17 17:30:13 2010] [notice] Parent: Created child process 2020 [Sat Jul 17 17:30:13 2010] [warn] module php5_module is already loaded, skipping [Sat Jul 17 17:30:14 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Jul 17 17:30:14 2010] [warn] module php5_module is already loaded, skipping [Sat Jul 17 17:30:14 2010] [notice] Digest: generating secret for digest authentication ... [Sat Jul 17 17:30:14 2010] [notice] Digest: done [Sat Jul 17 17:30:14 2010] [notice] Child 2020: Child process is running [Sat Jul 17 17:30:14 2010] [notice] Child 2020: Acquired the start mutex. [Sat Jul 17 17:30:14 2010] [notice] Child 2020: Starting 64 worker threads. [Sat Jul 17 17:30:14 2010] [notice] Child 2020: Starting thread to listen on port 80. [Sat Jul 17 17:30:41 2010] [error] [client 127.0.0.1] File does not exist: C:/htdocs/competition/login [Sat Jul 17 17:53:50 2010] [error] [client 127.0.0.1] File does not exist: C:/htdocs/competition/login I have spent the afternoon trying to get this fixed and I really would appreciate any advice. Thanks, Ross