Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2004
    Location
    Coming soon to a location near you
    Posts
    45
    Plugin Contributions
    0

    Default redirects prevent access to admin area

    I need a way to redirect the server from xyz.com to 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!
    Outside a dog, a book is a man's best friend.
    Inside a dog, it's too dark to read.
    Groucho Marx

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default 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.
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Sep 2004
    Location
    Coming soon to a location near you
    Posts
    45
    Plugin Contributions
    0

    Default 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 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 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.
    Outside a dog, a book is a man's best friend.
    Inside a dog, it's too dark to read.
    Groucho Marx

  4. #4
    Join Date
    Sep 2004
    Location
    Coming soon to a location near you
    Posts
    45
    Plugin Contributions
    0

    Default 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!
    Last edited by Tim_B; 15 May 2006 at 05:36 AM. Reason: figured out problem
    Outside a dog, a book is a man's best friend.
    Inside a dog, it's too dark to read.
    Groucho Marx

  5. #5
    Join Date
    Feb 2004
    Location
    Simcoe, Ontario, Canada
    Posts
    2,479
    Plugin Contributions
    1

    Default 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 www.domain.com or vise versa. Depends on who you use...refered to as a wildcard.
    Windows, BSD, Linux, Cisco, Hardware & IT Security Tech
    AEIIA - Zen Cart Certified & PCI Compliant Hosting

  6. #6
    Join Date
    Sep 2004
    Location
    Coming soon to a location near you
    Posts
    45
    Plugin Contributions
    0

    Default Re: redirects prevent access to admin area

    Quote Originally Posted by Qdixon
    you can do that or you can edit your domain( the DOMAIN host) to redirect all queries from domain.com to 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
    Outside a dog, a book is a man's best friend.
    Inside a dog, it's too dark to read.
    Groucho Marx

  7. #7
    Join Date
    Feb 2004
    Location
    Simcoe, Ontario, Canada
    Posts
    2,479
    Plugin Contributions
    1

    Default 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.
    Windows, BSD, Linux, Cisco, Hardware & IT Security Tech
    AEIIA - Zen Cart Certified & PCI Compliant Hosting

 

 

Similar Threads

  1. v153 Admin page access fails with too many redirects
    By swguy in forum Bug Reports
    Replies: 28
    Last Post: 16 Jan 2015, 07:13 PM
  2. v151 Trying to Access Admin Area Invokes /admin/alert_page.php
    By powrwrap in forum Upgrading to 1.5.x
    Replies: 8
    Last Post: 6 Jun 2013, 02:58 AM
  3. admin login page is missing. cant access admin area
    By ztotheetothen in forum Customization from the Admin
    Replies: 11
    Last Post: 26 Feb 2011, 05:44 PM
  4. How can I Protect the orders area in my admin to prevent access to it?
    By diamondgirl in forum Managing Customers and Orders
    Replies: 2
    Last Post: 12 Jun 2010, 09:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg