Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Location
    Essex (UK)
    Posts
    71
    Plugin Contributions
    0

    help question Help! Main page duplicating

    Hi,

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

    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?

    Anyone that can help I would be EXTRENLY GREATFUL.

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

    thanks
    Paul

  2. #2
    Join Date
    Feb 2009
    Location
    Mogadore, Ohio
    Posts
    32
    Plugin Contributions
    0

    Default Re: Help! Main page duplicating

    Try this rewrite code

    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

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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/i...hp?article=122

  4. #4
    Join Date
    Mar 2009
    Location
    Essex (UK)
    Posts
    71
    Plugin Contributions
    0

    Default 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

    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/?

    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

  5. #5
    Join Date
    Feb 2009
    Location
    Mogadore, Ohio
    Posts
    32
    Plugin Contributions
    0

    Default 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/config...rt-new-domain/

    Good Luck

 

 

Similar Threads

  1. Text in "Main Page" Duplicating
    By megzo487 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Feb 2011, 06:26 PM
  2. Help Remove catagories off main page, but list subcatagories of main page
    By MadPricerSales in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Mar 2010, 04:14 AM
  3. Duplicating a page?
    By AmirGTR in forum Addon Templates
    Replies: 3
    Last Post: 6 Jan 2010, 06:27 AM
  4. N Help Duplicating Categories
    By lizar5- in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 Oct 2007, 05:47 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