Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Location
    Albuquerque, NM
    Posts
    198
    Plugin Contributions
    0

    Default Re: What do I do with old zen cart directory after upgrade?

    Ok, all my redirects are working except one, which is the most important, my basic url is not redirecting to the /store folder. For now I made a simple landing page with a link to my store.

    Before it was redirecting correctly because I have the domain where it is hosted redirecting to the /store folder, but now that I've added the 301 redirect it seems to have cancelled that out or something.

    So my new question is, should I not be using the hosted domain redirect at the same time as the .htaccess 301 redirect? Is one way preferable over the other in terms of SEO? Should I cancel the redirect through my hosting company?

    Thanks!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: What do I do with old zen cart directory after upgrade?

    Quote Originally Posted by BlackOrchidCouture View Post
    So my new question is, should I not be using the hosted domain redirect at the same time as the .htaccess 301 redirect?
    Please explain exactly what *you* mean by "hosted domain redirect" and also exactly what you've got for your ".htaccess 301 redirect".
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2010
    Location
    Albuquerque, NM
    Posts
    198
    Plugin Contributions
    0

    Default Re: What do I do with old zen cart directory after upgrade?

    Quote Originally Posted by DrByte View Post
    Please explain exactly what *you* mean by "hosted domain redirect" and also exactly what you've got for your ".htaccess 301 redirect".
    Ok, up until now, through the site that I bought my domain name from I've had www.mysite.com redirecting to www.mysite.com/store, and ALSO, the hosting company where I have my whole site hosted (which is different from where I got my domain name), I've redirected my domain in the same way. This was working until I added the 301 redirect today. Now, mysite.com, mysite.com/catalog, and www.mysite.com/catalog are all redirecting correctly to www.mysite.com/store, but www.mysite.com is NOT redirecting.

    Here is what I put in the public_html folder:

    Code:
         RewriteEngine On
      RewriteCond %{HTTP_HOST} ^mysite.com$
      RewriteRule ^$ http://www.mysite.com/store$1 [L,R=301]
      
        RewriteEngine On
      RewriteCond %{HTTP_HOST} !^www.mysite.com$ [NC]
      RewriteRule ^(.*)$ http://www.mysite.com/store$1 [L,R=301]
    and here is what I put in the /catalog folder, it's working correctly:

    Code:
     RewriteEngine On
      RewriteCond %{HTTP_HOST} ^mysite.com/catalog$
      RewriteRule ^$ http://www.mysite.com/store$1 [L,R=301]
      
        RewriteEngine On
      RewriteCond %{HTTP_HOST} !^www.mysite.com/catalog$ [NC]
      RewriteRule ^(.*)$ http://www.mysite/store$1 [L,R=301]
    I also added this to the /store .htaccess file:

    Code:
    RewriteEngine On 
     RewriteCond %{HTTP_HOST} !^www.mysite.com$ [NC] 
     RewriteRule ^(.*)$ http://www.mysite.com/store$1 [L,R=301]
    Maybe it's too much redirecting?

    Thank you!!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: What do I do with old zen cart directory after upgrade?

    I'm still not clear.
    Quote Originally Posted by BlackOrchidCouture View Post
    up until now, through the site that I bought my domain name from I've had www.mysite.com redirecting to www.mysite.com/store
    You should NOT be using any "redirection" or "forwarding" at your domain registrar.
    Quote Originally Posted by BlackOrchidCouture View Post
    and ALSO, the hosting company where I have my whole site hosted (which is different from where I got my domain name), I've redirected my domain in the same way.
    If you mean you've set your domain to point to public_html/store then I guess I kinda understand, but you're describing it oddly, and if indeed you've got the webroot pointed to something other than public_html then either you're using inappropriate forwarding to do it, or all this redirecting is entirely unnecessary in the first place.

    Quote Originally Posted by BlackOrchidCouture View Post
    Maybe it's too much redirecting?
    Seems like it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: What do I do with old zen cart directory after upgrade?

    Much simpler approach:

    1. Domain Registrar: this is just a domain name, with nameservers set to your hosting company's nameserver values. NO FORWARDING.
    2. Hosting company: website is set up to "point to" your public_html/fred/ folder (whatever "fred" is for your flavor of the month folder preference, "store", "catalog", etc)
    3. .htaccess - nothing
    This way your customers access your site by visiting "www.your_domain.com" and that'll automatically push them into your "fred" folder transparently ... they'll never even know about the "fred" folder cuz that becomes the "top" of the website structure if you do as I described in #2 here.

    Granted, I don't usually recommend using a "fred" folder at all, because that just creates all this confusion you're encountering now. If you used no foldername (ie: "store" or "catalog") and none of these "redirects" you're doing, all this mess would be moot.
    The benefit of this is no SEO messes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Apr 2010
    Location
    Albuquerque, NM
    Posts
    198
    Plugin Contributions
    0

    Default Re: What do I do with old zen cart directory after upgrade?

    Quote Originally Posted by DrByte View Post
    If you mean you've set your domain to point to public_html/store then I guess I kinda understand, but you're describing it oddly, and if indeed you've got the webroot pointed to something other than public_html then either you're using inappropriate forwarding to do it, or all this redirecting is entirely unnecessary in the first place.
    Because the hosting companies make it possible to redirect your URL to point to a specific folder, and it's so easy to do that way, I guess I assumed that's the way it was done. 301 redirects through .htaccess are new to me, I only started looking into this when I realized that having had my whole store in a folder named /catalog and now having it all in /store might have messed things up in terms of old indexed links. Now I'm understanding that this might be the more correct way to do a redirect, but it's not working for all the variations of my url that I type in, including the most important one, my simple url. Actually that's the only one it's not working for. I'm just trying to understand how the code I put in the .htaccess is working for all the ways except if I type www.mysite.com. Don't know if this explains it any better or not, but thank you for taking the time to look over my post!

  7. #7
    Join Date
    Apr 2010
    Location
    Albuquerque, NM
    Posts
    198
    Plugin Contributions
    0

    Default Re: What do I do with old zen cart directory after upgrade?

    Oops, I hadn't seen your second post. Ok, I just redirected it through my hosting company and now it's all working correctly. Thanks!

    I guess I don't understand, the directions for installing Zen Cart say to create a folder such as /store or /catalog and put all the files in there. But you are saying it would have been best to put all the files in the public_html folder?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: What do I do with old zen cart directory after upgrade?

    Quote Originally Posted by BlackOrchidCouture View Post
    Oops, I hadn't seen your second post. Ok, I just redirected it through my hosting company and now it's all working correctly. Thanks!

    Quote Originally Posted by BlackOrchidCouture View Post
    I guess I don't understand, the directions for installing Zen Cart say to create a folder such as /store or /catalog and put all the files in there. But you are saying it would have been best to put all the files in the public_html folder?
    Those instructions are for people who don't understand the concepts of "public_html" and "webroots" and how to identify the folder where their Zen Cart store is at ... giving them instructions to use a name that's obvious to them gives them a clue of something to hold onto while they're going for the ride of learning something completely new.

    When one's comprehension of how websites work grows and one becomes ready to make adjustments, those initial instructions become more of a reference than a rigid structure.

    There are LOTS of different ways to set up a website. The supplied initial installation instructions offer "one" approach for choosing a location for installation. Alter as required to suit your needs.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Problem after moving main zen cart directory
    By Raptors in forum General Questions
    Replies: 6
    Last Post: 26 Aug 2010, 01:06 AM
  2. install zen cart with old database
    By chadkan in forum General Questions
    Replies: 2
    Last Post: 20 Oct 2009, 12:21 AM
  3. Should I install Zen Cart in the root of my site? or in a directory? What about SEO?
    By Berserker in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 8 Oct 2009, 02:26 AM
  4. Warning after upgrade to Upgraded to Zen Cart 1.3.8a
    By karmasherbs in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 27 Mar 2009, 04:16 AM

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