Results 1 to 6 of 6
  1. #1

    Default .htaccess to direct from /catalog/ to root

    Can anyone help me with changing from www.example.com/zencartfolder/ to just www.example.com ? I would like to do this in my .htaccess file.
    Thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: .htaccess to direct from /catalog/ to root

    Would be much easier and more reliable to move your cart to the root
    Zen-Venom Get Bitten

  3. #3

    Default Re: .htaccess to direct from /catalog/ to root

    It's already installed though. I guess it wouldn't be a big deal to move it though. I've tried before and it didn't work. In my sites where I use Ultimate SEO URLs, I simply put

    DirectoryIndex /store/index.php index.html

    and it works beautifully. With another site I am doing, I used CEON URI instead and that line in the .htaccess doesn't do it.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: .htaccess to direct from /catalog/ to root

    Zen-Venom Get Bitten

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: .htaccess to direct from /catalog/ to root

    Quote Originally Posted by Doodlebuckets View Post
    It's already installed though. I guess it wouldn't be a big deal to move it though. I've tried before and it didn't work. In my sites where I use Ultimate SEO URLs, I simply put

    DirectoryIndex /store/index.php index.html

    and it works beautifully. With another site I am doing, I used CEON URI instead and that line in the .htaccess doesn't do it.
    To my knowledge, USEO uses "RewriteBase" -not- "DirectoryIndex".

    Specific to Ultimate SEO:

    if Zen Cart is in a sub-directory called 'store'
    RewriteBase /store/

    if Zen Cart is in the root directory:
    RewriteBase /

  6. #6
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,009
    Plugin Contributions
    61

    Default Re: .htaccess to direct from /catalog/ to root

    Kobra is exactly right, move it to the root. Update your htaccess for the USEO and add below as not to lose all of your links and rank as well.

    Code:
    RewriteBase /
    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^store_folder/ [NC]
    RewriteRule ^folder(.*)$ http://domain.com$1 [R=301,L]
    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

 

 

Similar Threads

  1. htaccess in root
    By familynow in forum General Questions
    Replies: 2
    Last Post: 16 Nov 2011, 04:22 PM
  2. Problem moving folder from sub-root to root
    By andycowboy in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 28 Jul 2009, 02:15 AM
  3. .htaccess file in root directory- yes or no?
    By ttoonz in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 25 Nov 2008, 01:45 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR