Unzipped Shop skeleton to ‘C:\wamp\www\mysite’.
I can open Home page, but any other page displays 404 Apache-style error. I’ve already went through Troubleshooting section, but with no luck.
I’ve tried to change ‘/’ before RewriteBase to ‘/mysite’, ‘/mysite/’, ‘/mysite/shop’, ‘/mysite/shop/’, ‘/www/mysite’ etc., non of my guesses worked.
Here is my .htaccess.
<IfModule mod_rewrite.c>
RewriteEngine On
##
# If you are getting 404 errors on subpages, you may have to uncomment the RewriteBase entry
# You should change the '/' to your appropriate subfolder. For example if you have
# your Grav install at the root of your site '/' should work, else it might be something
# along the lines of: RewriteBase /<your_sub_folder>
##
RewriteBase /mysite
# Access site
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
# Block various user files from being accessed directly
RewriteRule ^user/accounts/(.*)$ error [R=301,L]
RewriteRule ^user/config/(.*)$ error [R=301,L]
RewriteRule ^user/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ error [R=301,L]
# Block cache/
RewriteRule ^cache/(.*) error [R=301,L]
# Block bin/
RewriteRule ^bin/(.*)$ error [R=301,L]
# Block system/
RewriteRule ^system/(.*)$ error [R=301,L]
# Block vendor/
RewriteRule ^vendor/(.*)$ error [R=301,L]
</IfModule>
# Prevent file browsing
Options -Indexes
Ok I assume you tried first without uncommenting the RewriteBase? If that’s the case then RewriteBase should fix it. Can you try removing the space before the RewriteBase command?
OK, i have no more bright ideas until I can replicate this myself. Could you do me a favor and try with XAMP or EasyApache? I’ve tested those both recently. Thanks.
Well I just spent an hour trying to get WAMP running, and have been having all kinds of DLL issues and i’m not sure if its my virtual machine or what or my version of Windows 8.
However, from what I’ve read about WAMP you have to manually enable the rewrite_module in the Apache Modules configuration as it doesn’t come enabled by default.
I think you are much better off with XAMPP frankly Seems a much more robust solution for windows.