Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Aug 2005
    Posts
    1
    Plugin Contributions
    0

    Default Re: How to direct domain to > /store/ (directory)

    I simply used my server to redirect the .com site to the shop. This way visitors type in the web site .com URL and are instantly redirected to ZenCart). I use the cart as a member registration module and use an EZPage link back to the .com site. But you may have to registere a domain name and leave it an empty site with a redirect to your shop. Does this help?

    Warm regards all the way from beyond the Black Stump!

  2. #12
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: How to direct domain to > /store/ (directory)

    hi

    Great to hear. Your suggestion really does not apply to my current circumstances but also good alternative.

    Looks like I need to speak with my client and change the root from xyz.com/store to xyz.com/

    The only reason I want is that I am concern about the search engine submissions As some will penalize you for redirects.

    Thanks anyway
    Downunder QLD

  3. #13
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: How to direct domain to > /store/ (directory)

    I'm no expert on this, in fact I'm trying to find the "right" way to redirect from our webpage.com address to webpage.com/store. Up until now, I've been using the
    <?php
    header("location:http://www.xyz.com/store");
    method suggested in this thread. However, I would proceed with caution as we've had a page rank of 0 for the past 6 months! The reason we don't move our shop to the root is because it's been set up like this and working properly for months, so I'd rather avoid spending a ton of time trying to move the folder and hunting down all the problems.

    I believe this redirect is the reason for our bad page ranking, and from what I've heard on other threads, search engines don't like this kind of redirect. Could someone please advise on the way to do this in .htaccess file?

    I'll keep searching and if I come up with the answer, I'll post it here.
    Currently using ZEN CART v. 1.3.6

  4. #14
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: How to direct domain to > /store/ (directory)

    Okay, I've tracked down some .htaccess methods. Here are a list of the ones that SHOULD work for those out there trying to do the same thing:

    Just create a text doc called .htaccess and put 1(!) of these in that file then upload to your root. Of course, change the yourwebsite.com to your website address, and the catalog folder to whatever you've called yours.

    Code:
    redirect 301 /index.php http://www.yourwebsite.com/catalog/index.php
    
    DirectoryIndex catalog/index.php
    Neither of these worked for me. In fact, I've tried a bunch of different syntaxes and methods and my htaccess file seems completely ignored. I made sure it was transfered in ASCII and set the permissions to 644 as was suggested, but nothing happens.

    Can someone please enlighten me on what I'm doing wrong? Or what else I can check on our server? Yes, we're on an Apache Fedora server. I noticed that mod_rewrite was loaded, and url rewrite was set to "a=href,area=href,frame=src,form=,fieldset=" All gibberish to me, unfortunately.
    Currently using ZEN CART v. 1.3.6

  5. #15
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: How to direct domain to > /store/ (directory)

    Quote Originally Posted by magicpants View Post
    Okay, I've tracked down some .htaccess methods. Here are a list of the ones that SHOULD work for those out there trying to do the same thing:

    Just create a text doc called .htaccess and put 1(!) of these in that file then upload to your root. Of course, change the yourwebsite.com to your website address, and the catalog folder to whatever you've called yours.

    Code:
    redirect 301 /index.php http://www.yourwebsite.com/catalog/index.php
    
    DirectoryIndex catalog/index.php
    Neither of these worked for me. In fact, I've tried a bunch of different syntaxes and methods and my htaccess file seems completely ignored. I made sure it was transfered in ASCII and set the permissions to 644 as was suggested, but nothing happens.

    Can someone please enlighten me on what I'm doing wrong? Or what else I can check on our server? Yes, we're on an Apache Fedora server. I noticed that mod_rewrite was loaded, and url rewrite was set to "a=href,area=href,frame=src,form=,fieldset=" All gibberish to me, unfortunately.
    magicpants

    change this:
    Code:
    redirect 301 /index.php http://www.yourwebsite.com/catalog/index.php
    to read:

    Code:
    redirect 301 / http://www.yourwebsite.com/catalog/
    this way it should work. The previous way, it would only work if you went to yourdomain.com/index.php, not if you went to it without (about 95&#37; sure of that)

    i also think you're right regarding the index.php header/redirect method. i had forgotten about the effect it had on my page rank when i had used it previously.. thanks for reminding me about that!

  6. #16
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: How to direct domain to > /store/ (directory)

    Thanks samad64 for the advice -- unfortunately it doesn't change anything. I really think the htaccess is just being completely ignored. I'm sure I've done everything correctly, unless I'm supposed to add more than 1 line to it (just writing the redirect line at the top of the file).

    But, is there some server setting that could be wrong? Or some other reason the file isn't being looked at? I couldn't find anything on google or the forums so I'm at a total loss...
    Currently using ZEN CART v. 1.3.6

  7. #17
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: How to direct domain to > /store/ (directory)

    For anyone else suffering from the problem I had (i.e. the htaccess file being ignored), I had to change one line in our httpd.conf file on the server. From
    AllowOverride None
    to
    AllowOverride All

    Hope that saves somebody else some time!
    Currently using ZEN CART v. 1.3.6

  8. #18
    Join Date
    Oct 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: How to direct domain to > /store/ (directory)

    Thanks Magicpants and Samad64,

    Very useful info for me.

    On thing though that I will mention in case it is the same for anyone else reading...
    I found that
    rendered the URL as
    http://www.mysite.com/store/store/store/store/store/ (infinity)
    And firefox said:

    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    So I changed it to
    redirect 301 /index.html http://www.mysite/store/

    And it worked fine.

  9. #19
    Join Date
    Apr 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: How to direct domain to > /store/ (directory)

    This is working great for me when I change the HT access page, it's redirecting http://omglia.com to http://omglia.com/catalog but the problem is when I click the "Main Page" link (I changed it from HOME) at the top and bottom and breadcrumb trail ... it redirects to "Index of /catalog" with a list of all of my folders and whatnot, with the url at the top http://omglia.com/catalog . Help? Where can I change where that links to?

  10. #20
    Join Date
    Apr 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: How to direct domain to > /store/ (directory)

    Nevermind I figured it out by changing tpl_header.php that I found in this thread:
    http://www.zen-cart.com/forum/showthread.php?t=93221
    now it works :)

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. How to change the domain directory?
    By hamidz in forum General Questions
    Replies: 3
    Last Post: 26 May 2010, 06:38 PM
  2. How do I direct my incoming store email to my yahoo account?
    By rcmonster in forum General Questions
    Replies: 2
    Last Post: 19 Nov 2008, 11:22 PM
  3. How to move my store to another directory?
    By Peace Freak in forum Installing on a Windows Server
    Replies: 11
    Last Post: 13 Jun 2006, 05:07 AM

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