Thread: Redirects

Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Redirects

    The other thing/thought would be to simply move the new site to take the same path(s) as the old site did and to move the old site out of the way.... That's generally the thought, unless the location of the new site is truly where it is desired and not there just to make things "easier".
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Apr 2009
    Posts
    188
    Plugin Contributions
    0

    Default Re: Redirects

    Quote Originally Posted by mc12345678 View Post
    The other thing/thought would be to simply move the new site to take the same path(s) as the old site did and to move the old site out of the way.... That's generally the thought, unless the location of the new site is truly where it is desired and not there just to make things "easier".
    Well....I suppose I could rename the new folder to what the old one used to be......but the page numbers/names are different..... It would be a nightmare....for me at least....to try to match all that up.

    I was just hoping that I could divert ANY incoming away from the old folder and send it to the new Home page.....it wouldn't be a direct page to page but at least it would get to the correct home page where they could then click to the page they wanted....

    I know that's not ideal and will lose some.....but I think it would be better than losing all of the incoming traffic looking for the old site....

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Redirects

    Quote Originally Posted by Music Man View Post
    Well....I suppose I could rename the new folder to what the old one used to be......but the page numbers/names are different..... It would be a nightmare....for me at least....to try to match all that up.

    I was just hoping that I could divert ANY incoming away from the old folder and send it to the new Home page.....it wouldn't be a direct page to page but at least it would get to the correct home page where they could then click to the page they wanted....

    I know that's not ideal and will lose some.....but I think it would be better than losing all of the incoming traffic looking for the old site....
    And I wasn't suggesting that it was a "better" way to handle the situation, only knew that I would run out of time to edit my previous post and that the above was merely another means to address the issue. Ideally, if you identify what it is you are wanting to specifically do, possibly include a why so as not to get challenged, add the details (or generalities with which to work applicable to that method), then help will follow... Until then, seems like it is pretty much a blank slate... I would think that there are several factors involved in deciding which is the "better" route to go, but the most ideal would be a one-for-one mapping so that there is no loss what-so-ever; however, ha.. yeah like that will be maintained and when redirects get involved don't want to redirect to a redirect to a redirect to a.........
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Apr 2009
    Posts
    188
    Plugin Contributions
    0

    Default Re: Redirects

    Yeah...it's sort of like a continual loop..... If fact I had trouble getting my head around even what to ask..... I don't know what I want to do exactly and was just sort of casting a line out to see if any ideas popped up..... I think I'll probably just have to cut my losses.....and start over with getting links to the new pages.

  5. #5
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Redirects

    I curious... What led to the decision to scrap the old data (database - sounds like 1.5.0) completely (instead of just performing a rebuild on the new version)?


    Usually one can just export the old database... Then perform a clean install w/ demo data (clean set of files in a new folder + new database + same db_prefix and db_charset)... Once the install is complete (and verified functioning), One can drop the new database (and replace with a clone of the old database)... Then one can run the database upgrade from zc_install... This process preserves all of the data (and the IDs) in the database and most likely would have avoided any need for attempting to redirect URLs...

    But now that you are where you are... You can stick with the new URLs (and go live)...

    Or if you have not yet gone live with the new store and have good notes on all of the settings you have changed / configured... It may be worth going back to the database clone + upgrade db step... Then re-applying your changes (and re-installing any plugins)... This would be the "best bet" for retaining all of the URLs (and historical order and customer data)... If going this route, be sure to do a full backup (database and files) first (so you don't lose all your work).
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  6. #6
    Join Date
    Apr 2009
    Posts
    188
    Plugin Contributions
    0

    Default Re: Redirects

    Quote Originally Posted by lhungil View Post
    I curious... What led to the decision to scrap the old data (database - sounds like 1.5.0) completely (instead of just performing a rebuild on the new version)?


    Usually one can just export the old database... Then perform a clean install w/ demo data (clean set of files in a new folder + new database + same db_prefix and db_charset)... Once the install is complete (and verified functioning), One can drop the new database (and replace with a clone of the old database)... Then one can run the database upgrade from zc_install... This process preserves all of the data (and the IDs) in the database and most likely would have avoided any need for attempting to redirect URLs...

    But now that you are where you are... You can stick with the new URLs (and go live)...

    Or if you have not yet gone live with the new store and have good notes on all of the settings you have changed / configured... It may be worth going back to the database clone + upgrade db step... Then re-applying your changes (and re-installing any plugins)... This would be the "best bet" for retaining all of the URLs (and historical order and customer data)... If going this route, be sure to do a full backup (database and files) first (so you don't lose all your work).
    I had no clue how to manipulate the old DB and reinstall it. I thought about looking into it but was concerned, based on my lack of ability to recover the site completely after a crash, that the DB was corrupted also. So, rather than take a chance on importing a defective/flawed DB, I elected to just start over with everything being fresh. I naively thought that I would be able to find some way to do a global redirect for those pages out there on the search engines. Part of my problem with all this is my lack of knowledge of how the DB interfaces with the cart itself.....you don't know what you don't know and in some cases you don't even know that you should ask a particular question early on to eliminate dead end efforts.....if that makes sense.

    I must admit that I learned a lot more during this installation than I had in the past where I allowed my ISP to do the initial install. This time, since my ISP was still back at v1.5.1 I elected to install v1.5.4 myself..... So next time I won't be so afraid to try and will probably be ready to attempt a DB import.
    Last edited by Music Man; 7 Apr 2015 at 04:45 PM.

 

 

Similar Threads

  1. v154 Failing redirects
    By Limey in forum General Questions
    Replies: 6
    Last Post: 14 Oct 2015, 03:13 PM
  2. v153 404 redirects
    By Andy-C27 in forum General Questions
    Replies: 10
    Last Post: 23 Sep 2014, 07:50 AM
  3. 302 redirects
    By dwessell in forum General Questions
    Replies: 1
    Last Post: 1 Jul 2011, 08:15 PM
  4. Page redirects
    By celticwebsolutions in forum General Questions
    Replies: 11
    Last Post: 24 May 2010, 09:31 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