Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Problem redirect site

Problem redirect site

Started by icikite on 14 Mar 2012, 4:29 PM · Views: 662

Results 1 to 4 of 4
14 Mar 2012, 4:29 PM
#1
icikite avatar

icikite

New Zenner

Join Date:
Mar 2009
Posts:
69
Plugin Contributions:
0

Problem redirect site

My old site is under mysite.com. All Google ranking is under the root of mysite.com. Now my site is under mysite.com/estore.
I change .htaccess of the root with or other try and it will give me an error: to may redirect

RewriteEngine on
RewriteCond %{QUERY_STRING} !estore
RewriteRule ^/?$ "http://mysite.com/estore/" [R=301,L]

or either

RewriteEngine on
RewriteRule ^/?$ "http://mysite.com/estore/" [R=301,L]

Could somebody help me. (I already spent 3 days on that problem).
Thanks.

17 Mar 2012, 2:34 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Problem redirect site

icikite:

My old site is under mysite.com.
Now my site is under mysite.com/estore.
Why did you move 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.

17 Mar 2012, 1:05 PM
#3
icikite avatar

icikite

New Zenner

Join Date:
Mar 2009
Posts:
69
Plugin Contributions:
0

Re: Problem redirect site

The root version was done by another webressource. Now I am using Zencart since a good year I just realize the Google ranking problem.I do not have very much experience.

In root I have:
page1.html
page2.html
estore folder
order.php

I just found that I can put in each program a php redirect line. I taught that htaccess was they only way.

Also I wonder if it not better for ranking purpose to put Zencart in root folder?

Thanks a lot Dr. Byte for looking my problem.

17 Mar 2012, 4:07 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Problem redirect site

Yes, it is usually best if Zen Cart is in the root folder, not in a subdirectory.

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