Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
joeljordan
Configure Files both reflect the following:
define('HTTP_SERVER', 'http://www.domain.com');
define('HTTPS_SERVER', 'https://www.domain.com');
define('HTTP_CATALOG_SERVER', 'http://www.domain.com');
define('HTTPS_CATALOG_SERVER', 'https://www.domain.com');
Originally, they did not have the "www" preceding the domain name. I have tried removing and re-adding "www" but neither works.
So, inside my /admin was another .htaccess file. I deleted the following:
# $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>
# Fix certain PHP values
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>
# to turn off register_globals
# php_value register_globals 0
And now everything works fine.
Did I need to keep any of that in there?
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Yea, I'm using cpanel with Fantastico, and my host has not updated Zen Cart to h yet. I will upgrade as soon as they make it available.
Please NEVER NEVER use Fantastico for an upgrade
Manual is the only reliable method
Re: Can't login to admin after upgrading to 1.3.9g
:oops: Actually, that wasn't it at all. I though everything was working because I was still logged in... the admin section seems to work as long as I can get passed the admin log in. Which I can't if the previously mentioned:
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
are in effect.
Not sure how to proceed.
How do I keep my "www" without adding the above to my .htaccess?
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
kobra
Please NEVER NEVER use Fantastico for an upgrade
Manual is the only reliable method
hmm... ok. I guess I just don't trust myself not to crash my own site. :blush:
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
I guess I just don't trust myself not to crash my own site.
You can let Fantastico crash it As that is what it will do
Follow the tutorial with a new install in a folder and a new database for the upgrade while your running shop remains running
https://www.zen-cart.com/tutorials/i...hp?article=108
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
How do I keep my "www" without adding the above to my .htaccess?
What is in your configure.php files?
www or not
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
kobra
What is in your configure.php files?
www or not
www is IN the configure.php files
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
www is IN the configure.php files
You didn't post it but try this in htaccess if it was not this way before
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]
Make sure that you replace "your_domain.com" with your actual domain name
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Originally Posted by
kobra
You didn't post it but try this in htaccess if it was not this way before
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]
Make sure that you replace "your_domain.com" with your actual domain name
That was very similar to what I had before, which I posted above. Here is what is in my .htaccess:
RewriteEngine on
# compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
<Files 403.shtml>
order allow,deny
allow from all
</Files>
<Files *.html>
SetOutputFilter DEFLATE
</Files>
<Files *.htm>
SetOutputFilter DEFLATE
</Files>
<Files *.php>
SetOutputFilter DEFLATE
</Files>
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.*)=http [NC]
RewriteRule ^(.*)$ – [F,L]
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
RewriteCond %{HTTP_HOST} !^www.mydomain.com$
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301]
AuthName mydomain.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp
Re: Can't login to admin after upgrading to 1.3.9g
Quote:
Here is what is in my .htaccess:
If that is actually what you have, you need to change several to your actual domain name
And "user" to your actual user name