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.