
Originally Posted by
toomanyknots
Well, I removed .htaccess file and it works now. ...
[I]# Begin cache control #
ExpiresActive on
ExpiresActive off
...
Just enable mod_expires in your Apache configuration (and make sure you set "AllowOverride All" or at least "AllowOverride Indexes" on the server root / virtual host root). Then those directives will work.

Originally Posted by
toomanyknots
... If I go to "www.localhost" I get the same server not found message too so I don't know if redirecting is the problem or not but it seems like it to me.
Strange, can you confirm the issue started after installing IONCube? Can also check the Apache configuration and .htaccess files (for any FQDN style Redirect / RewriteRule directives) and your browser (any plugins or proxies).
One alternative approach would be to change local domain name resolution for your computer so you can use something other than "localhost" and "localhost.localdomain".
For example I currently have the following added to the host file on my development computer:
Code:
# Zen Cart Projects
127.0.0.1 zencart.local
127.0.0.1 www.zencart.local
If you use a domain name such as "mydomain.local" and "www.mydomain.local" and configure Apache to use VirtualHost directives, it will make testing locally far easier. The multiple domain names on one IP address example should give a good idea how to accomplish this...
For example I currently have the following added to the Apache configuration on my development computer:
Code:
# Allow Apache to serve the root folder
<Directory "C:/workspaces/ZC/zencart/public_html/">
Options Indexes FollowSymLinks MultiViews
# Apache 2.4 requires mod_access_compat for these
AllowOverride all
Order allow,deny
Allow from all
</Directory>
# HTTP access
<VirtualHost *:80>
ServerName zencart.local
ServerAlias www.zencart.local
DocumentRoot "C:/workspaces/ZC/zencart/public_html/"
ErrorLog "C:/workspaces/ZC/zencart/zencart-error.log"
CustomLog "C:/workspaces/ZC/zencart/zencart-access.log" common
SetEnv APPLICATION_ENV "development"
</VirtualHost>
# HTTPs access
# Requires mod_ssl and SSL configuration elsewhere
<VirtualHost *:443>
ServerName zencart.local
ServerAlias www.zencart.local
DocumentRoot "C:/workspaces/ZC/zencart/public_html/"
ErrorLog "C:/workspaces/ZC/zencart/zencart-error.log"
CustomLog "C:/workspaces/ZC/zencart/zencart-access.log" common
SetEnv APPLICATION_ENV "development"
SSLEngine on
SSLCertificateFile "C:/wamp/bin/openssl/certs/localhost.crt"
SSLCertificateKeyFile "C:/wamp/bin/openssl/private/localhost.key"
</VirtualHost>
Bookmarks