I took my Magento store from a live site to a localhost. Magento's version is 1.7, and it's running over WAMP on my localhost. The homepage was working fine, but all URLs from there gave 404 error from the server. However, if I included index.php manually in each URL, everything worked fine. I figured out that going to Admin/System/Configuration/General/Web, I had enabled the option for URL rewrites that removes index.php. When I disable this option, my site works properly. So, I searched about this problem, and tried different things, but I have not been able to solve it.
I have mod_rewrite enabled, that's the first thing I checked.
I have seen lots of posts recommending to overwrite either an .htaccess file or a httpd.conf (Apache's configuration file) file.
My .htaccess looks like this right now:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* ../get.php [L]
</IfModule>
I also checked that in httpd.conf I had AllowOverride al, and indeed, among other things, I have the following:
code:
# # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride all
My site is still not working when enabling the option for removing index.php from all URLs.
Does anyone have an idea of what I might be missing? Any help will be much appreciated :-)