Zen Cart Logo
Forums / General Questions / Help! Main page duplicating

Help! Main page duplicating

Locked

Views: 531

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
31 Jul 2009, 9:43 PM
#1
pasb avatar

pasb

New Zenner

Join Date:
Mar 2009
Location:
Essex (UK)
Posts:
71
Plugin Contributions:
0

Help! Main page duplicating

Hi,

Please help, as my main page is duplicating and I don't know how to sort it, I have https://www.naildelights.com and https://www.naildelights.com/catalog/?:blink:

My host has put in this redirect

RewriteEngine on
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^(www.)?naildelights.com
RewriteCond %{REQUEST_URI} !/catalog/
RewriteRule (.*) /catalog/$1 [L]

this is to get my site to show, which was where the holding page was!

But because of this it might be causing the problem?

I have also tried placing my redirects from my previous links in this htaccess file but it causes a server error so I don't know whats going on?:ohmy:

Anyone that can help I would be EXTRENLY GREATFUL.

I have simple seo and xml sitemap installed if this makes a difference?

thanks
Paul

31 Jul 2009, 10:40 PM
#2
jprough avatar

jprough

New Zenner

Join Date:
Feb 2009
Location:
Mogadore, Ohio
Posts:
31
Plugin Contributions:
0

Re: Help! Main page duplicating

Try this rewrite code

RewriteEngine on

RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteCond %{REQUEST_URI} !^/folder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /folder/$1
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ folder/ [L]
```Make sure there are no index.html or index.php files in your root directory, as this will redirect any request from the root to the catalog unless the file exist in the root. 

Good luck
31 Jul 2009, 11:15 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Help! Main page duplicating

Abetter question might be: Why don't you install your cart in the root of your site, rather than messing around with the redirects?
**
https://www.zen-cart.com/tutorials/index.php?article=122**

31 Jul 2009, 11:37 PM
#4
pasb avatar

pasb

New Zenner

Join Date:
Mar 2009
Location:
Essex (UK)
Posts:
71
Plugin Contributions:
0

Re: Help! Main page duplicating

Hi,

Thanks to both, for your help

I will attempt both in the morning now my brain has had it for now:blink:

I see the point entirely about moving the site to the root, but when I asked they said thats where it goes, but as I said I did not have this issue before so why this time?

At present its in the /html/ part on the server, which section should I move it too of I did, the /www/?:huh:

My cinfig files are set up with /catalog/ at present will these need to change and if so what to?

If this don't work then I will have to accept that it needs a re-direct, but I would like to give the move a try, if you could help me a bit with this info?

I have read the FAQ page that you gave me the link to, just wondered about these other things too.

thanks again

Paul

1 Aug 2009, 1:44 AM
#5
jprough avatar

jprough

New Zenner

Join Date:
Feb 2009
Location:
Mogadore, Ohio
Posts:
31
Plugin Contributions:
0

Re: Help! Main page duplicating

You should be able to move all files currently in public_html/catalog/ to public_html/ and then change both config files to reflect the new location.

Here is a tutorial on the subject if you would like to check it out. http://pro-webs.net/tutorials/configure-zen-cart-new-domain/

Good Luck