I am trying to install opencart 2.3.0 on hostgator cloud hosting servers. The installation goes fine and I am able to see the homepage for the store. However, when I try to login to Admin or store. It doesn't work. The login page keeps on coming again and again without any error (when correct username/password are used). When I try with wrong username/password, I get the opencart error.
When I checked the cookies on my browser, I see that cpsession and api cookies are not getting set. All other cookies like currency, PHPSessionid are getting set correctly.
Has anyone got into such problem?
TIA !!
Below are the contents of my .htaccess file
Code: Select all
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
# Set up caching on media files for 5 weeks
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A3024000
Header append Cache-Control "public"
</FilesMatch>
# Set up 1 day caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A86400
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
# Force no caching for dynamic files
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>