Zen Cart Logo
Forums / General Questions / redirects prevent access to admin area

redirects prevent access to admin area

Locked

Views: 3,729

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 May 2006, 3:54 AM
#1
tim_b avatar

tim_b

New Zenner

Join Date:
Sep 2004
Location:
Coming soon to a location near you
Posts:
38
Plugin Contributions:
0

redirects prevent access to admin area

I need a way to redirect the server from xyz.com to https://www.xyz.com

this method prevents access to the admin area. You cannot get past the login.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^tdncastle.com
RewriteRule ^(.*)$ http://www.tdncastle.com/$1 [R=permanent,L]

If I comment this out of my .htaccess file I can access my admin.

Any redirects that work with zencart? I don't want to get dinged by google for duplicate page information. And sadly with as important as google is for business, it's more important to appease the googlebot than to use zen-cart.

Help! :unsure:

15 May 2006, 4:13 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: redirects prevent access to admin area

rather than go through the mod rewrit why not simply open your admin/includes/configure.php file and modify the links.

15 May 2006, 4:28 AM
#3
tim_b avatar

tim_b

New Zenner

Join Date:
Sep 2004
Location:
Coming soon to a location near you
Posts:
38
Plugin Contributions:
0

Re: redirects prevent access to admin area

I don't know what that means really.

I need an .htaccess redirect to redirect people who type in (or googlebot) tdncastle.com to https://www.tdncastle.com

that has nothing to do with zencart. THta has to do with googlebot rules and indexing. If they see two urls as identical they knock you down on their index and tdncastle.com and https://www.tdncastle.com are considered by googlebot to be two distinct urls.

a 301 permanent redirect is the only way to do this, but that prevents me from accessing the admin pages. Maybe if I set up admin back to ssl it will work since my ssl address is different.

But this still should work without that.

15 May 2006, 4:31 AM
#4
tim_b avatar

tim_b

New Zenner

Join Date:
Sep 2004
Location:
Coming soon to a location near you
Posts:
38
Plugin Contributions:
0

Re: redirects prevent access to admin area

ahhh, i think i figured it out. It's the way fantastico installs zencart. the config files don't use the www

perhaps that's what you meant. Let me check if that works.

edit.........
Yup,that was the problem. dang autoinstallers!

15 May 2006, 4:39 AM
#5
qdixon avatar

qdixon

Support Team

Join Date:
Feb 2004
Location:
Simcoe, Ontario, Canada
Posts:
1,906
Plugin Contributions:
1

Re: redirects prevent access to admin area

you can do that or you can edit your domain( the DOMAIN host) to redirect all queries from domain.com to https://www.domain.com or vise versa. Depends on who you use...refered to as a wildcard.

15 May 2006, 4:56 AM
#6
tim_b avatar

tim_b

New Zenner

Join Date:
Sep 2004
Location:
Coming soon to a location near you
Posts:
38
Plugin Contributions:
0

Re: redirects prevent access to admin area

Qdixon:

you can do that or you can edit your domain( the DOMAIN host) to redirect all queries from domain.com to https://www.domain.com or vise versa. Depends on who you use...refered to as a wildcard.

I thought that's what an .htaccess file did. Is there another way to edit the domain to redircect? That was my initical question. You mean the domain name server?

THe domain server I use only lets me do a 302 temp redirect which isn't horrible, but not correct since this should be permanent. I'm not sure if that's what you meant though.

off to bed for me...I'll read your reply in the am

15 May 2006, 10:37 PM
#7
qdixon avatar

qdixon

Support Team

Join Date:
Feb 2004
Location:
Simcoe, Ontario, Canada
Posts:
1,906
Plugin Contributions:
1

Re: redirects prevent access to admin area

No this is different, it is the way that the domain name is setup. This has nothing to do with any file.