If this is your first visit, check our documentation. To post, register or login.
Forums / Installing on a Linux/Unix Server / What do I need in .htaccess to redirect to my new site?

What do I need in .htaccess to redirect to my new site?

Started by marvin on 18 Mar 2013, 12:49 AM · Views: 1,763

Results 1 to 5 of 5
18 Mar 2013, 12:49 AM
#1
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

What do I need in .htaccess to redirect to my new site?

Hi, I just moved to a new server (with php 5.3.+ so that I could use zen 1.5.1 and had to do a clean install (with a DB restore & upgrade) from the old server.

My old site was https://www.herbschina.com/zen and my new is https://www.herbschina.com/zen1.5
what do I need in my .htaccess file to redirect customers to my new setup??

Thanks.

18 Mar 2013, 3:37 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: What do I need in .htaccess to redirect to my new site?

Why do you want to change the URL?

Why not just make your new site use the same URL as the original site did?

.
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.

18 Mar 2013, 12:42 PM
#3
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: What do I need in .htaccess to redirect to my new site?

Thanks for the reply.
Can you guide me as to how to do it? I know to change my catalog file and both configure.php files. But what other files require changing.

Thanks.

18 Mar 2013, 4:16 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: What do I need in .htaccess to redirect to my new site?

marvin:

Can you guide me as to how to do it? I know to change my catalog file and both configure.php files. But what other files require changing.
That's it.

Described further here: http://www.zen-cart.com/content.php?160-i-have-installed-zen-cart-to-a-directory-how-do-i-rename-or-move-that-directory

.
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.

18 Mar 2013, 8:01 PM
#5
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: What do I need in .htaccess to redirect to my new site?

Thanks DrByte you're great.