301 Redirects Revisited

We’re all posting at once!



OK, looks like I need to get over myself and just lauch this thing :mrgreen: I’ll have a chat with my partner and see if we should push the button tonight.



Any other thoughts, please share, but I think we may have just diagnosed the problem. Thank you ALL for hanging with me on this frustrating issue!

Yep, sorta like “Just Do It”! :smiley:



Look, just put your efforts into doing the best you can to test your new store & in being confident that it is ready for your new grand opening, then just do it.



I always do things like this at a very “off time” such as Sunday at 1:30 AM when working with a live store! And don’t worry much about the redirects, they will work…



Also, rest assurred, there will be some last minute scrambling, and in the end, it will all be good! :wink:

[quote name=‘Dardanus’]Maybe my biggest problem is trying to resolve this before pointing the DNS to my new location?



I thought about pointing first and redirecting after, but I’m scared that there will still be redirect problems and that Google will 404 on my old pages before it gets resolved.



Maybe I am worrying too much?[/quote]

Sure, the redirect should work properly and should be done (the functionality) before you change the DNS.

OK, moving closer to Nike status :smiley:



So now my question is this: Let’s say I repoint tonight (Friday) and by Saturday evening local time, it’s there and I get the redirects written and working by Sunday sometime. Is it going to do me any harm if Google comes and spiders the site, possibly finding a 404 before I get that done? And how likely is it that the Big G is going to stop by for a visit in that window of time anyway?



Or, am I worrying too much again? :mrgreen:

No problem with Google. They don’t remove a 404 site within a few hours. Just imagine that a 404 response was a fault of the site owner… They know that and don’t stop crawling these sites, they will remove a site with 404 response in few months…

[quote name=‘Dardanus’]OK, moving closer to Nike status :smiley:

(Tiger Woods is accepting endorsements I hear!)



So now my question is this: Let’s say I repoint tonight (Friday) and by Saturday evening local time, it’s there and I get the redirects written and working by Sunday sometime. Is it going to do me any harm if Google comes and spiders the site, possibly finding a 404 before I get that done? And how likely is it that the Big G is going to stop by for a visit in that window of time anyway?



Or, am I worrying too much again? :mrgreen:[/QUOTE]



Point it Tonight, immediately start creating your redirects in your .htaccess of your CS-Cart install, you will be fine. But yes, google will most likely visit your site soon, so you dont really want to wait for like days…:wink:

Ok then! That’s all I need to hear. The time has come!



Going to run off and do some final setup/testing, then we’re going to Push The Button.



Woooooooo!



Thanks again, Indy and Struck, for your excellent advice. This is a big move for me and it sure helps having some pros on board.



Hopefully by Monday I’ll be posting back with good news (not immediately with more anguished questions :wink: )

[QUOTE]Going to run off and do some final setup/testing, then we’re going to Push The Button.[/QUOTE]



Thanks for the advanced warning, I will be sure to stay away from the danger zone throughout tonight! :smiley: :smiley:


[QUOTE]This is a big move for me and it sure helps having some pros on board.[/QUOTE]



Indy is the pro, I am only versed in the “Struck School of Hard Knocks & Logical Business Sense” :cool:



And good luck, let us kow how it is going!

Well, there are always glitches (like my SSL needing to be reissued because the first one would not install, you know, little things like that) but the most important thing to me right now is that DNS has transferred and MY REDIRECTS ARE WORKING!!! :o :o :o



{laughs, clicks heels}



Dee daa da dee dee, doo da de daa da {singing song of unfettered happiness}



THANK YOU for helping me diagnose this problem. Indy, your sample code worked perfectly, as you must have known it would.



The store is closed until the SSL problem is resolved, but i can get other things done in the meantime. Oh, and? Y’all should be grateful you can’t really hear me singing. The office cat is staring at me with her ears all flat, but I don’t care.



Dee daa da dee dee, doo da de… {pets cat, walks off singing}

Glad to hear you are almost back in business! :wink:


[QUOTE]The office cat is staring at me with her ears all flat, but I don’t care.[/QUOTE]



They typically do that just before attacking! :twisted:

[quote name=‘Struck’]They typically do that just before attacking! :twisted:[/QUOTE]



So that’s how you tell! :mrgreen: {adjusts band-aid}



Thanks for the good wishes. Making progress now!

[quote name=‘Dardanus’]Indy, your sample code worked perfectly, as you must have known it would. [/quote]

Nice to hear that! You’re welcome…

OK, SSL is fixed and we are live:



www.starfishandseashells.com



One last question on redirects, is there any way to direct all traffic that attempts to hit:



[url]http://www.starfishandseashells.com/[/url][B]store[/B]/[any_old_path]



and flush it to the homepage? I hate to think of a customer that bookmarked something seeing a 404 and not realizing we’re still around, just with a new-and-improved site. I tried various samples of code from around the 'net and none have worked yet. (I seem to have a real mental block for mod_rewrite.)



Also, it is advisable to let things 404 out for a few days so I can see what Google is tripping over, and then write specific redirects for anything else it wants to see?

[quote name=‘Dardanus’]OK, SSL is fixed and we are live:



www.starfishandseashells.com[/quote]

Nice design as well. Has been added to: [url]http://forum.cs-cart.com/showpost.php?p=76736&postcount=4[/url]


[QUOTE]Also, it is advisable to let things 404 out for a few days so I can see what Google is tripping over, and then write specific redirects for anything else it wants to see?[/QUOTE]



Take a look here: [url]http://forum.cs-cart.com/showthread.php?t=13879&highlight=404+redirect[/url]

Thanks! There’s more to do, but it’s an honor to make your list already :smiley:



I did find what I needed in the referenced thread.

[quote name=‘Dardanus’]Thanks! There’s more to do, but it’s an honor to make your list already :smiley:



I did find what I needed in the referenced thread.[/QUOTE]



Your site pages are loading quite fast as well, far faster than your old .asp site was moving, so you must have used good judgement in selecting your hosting provider, good for you!

I want to redirect all my pages from

[U][url]http://www.domain.com/category/123[/url][/U]

to

[U][url]http://www.domain.com/category/123[/url][B]/[/B][/U]

and domain.com/index.php page to domain.com/



Where I can change the redirect rules?

[quote]domain.com/index.php page to domain.com/[/quote]You must enable the SEO addon and clear the cache.


[quote]I want to redirect all my pages from

[U][URL]http://www.domain.com/category/123[/URL][/U]

to

[URL]http://www.domain.com/category/123[/URL][B]/



[/B]
Where I can change the redirect rules?[/quote]Just add this to your .htaccess file:

RewriteEngine on
RewriteCond %{query_string} category/123
RewriteRule (.*) http://www.domain.com/category/123/? [R=301,L]
Always clear the cache…