Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2011
    Location
    Brooklyn
    Posts
    67
    Plugin Contributions
    0

    Default redirect 301 working on one store but on the other

    Hi everyone. So a client I'm working with needed help with a redirect. I've successfully implemented a redirect of a page that no longer exists in another store and thought it would work the same here. But it's not working at all and I'm wondering if it could be because of a difference in where the store was installed. The previous store was installed in the root public_html and the store I'm working on now is in a domain subfolder (/secondstore.com/)

    In the first store was able to add the following CODE to the htaccess_for_page_not_found_redirects.htaccess file in the extras/ folder and it works!

    Code:
    redirect 301 /products.html http://firststore.com/index.php
    In the new store they want to redirect a page that never existed. They wanted to basic create a link www.secondstore.com/ManufacturerName/ and redirect it to Zen Cart Url http://www.secondstore.com/index.php...d=19&chapter=2

    So naturally I just put the following line of code into the htaccess_for_page_not_found_redirects.htaccess file in the extras/ folder for this store.

    Code:
    redirect 301 /ManufacturerName http://www.secondstore.com/index.php?main_page=page&id=19&chapter=2
    The result is
    Code:
    Not Found
    
    The requested URL /ManufacturerName was not found on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    And I can't figure what the difference is. I do notice when I compare the two config files the 1st store has HTTP_SERVER defined without the www. and this second has the HTTP_SERVER configured with the www. (not sure if that if part of the problem.)

    Any Ideas?

    Thanks,
    Andy

  2. #2
    Join Date
    Oct 2011
    Location
    AZ
    Posts
    392
    Plugin Contributions
    0

    Default Re: redirect 301 working on one store but on the other

    I see the first redirect is from a specific .html page to your site main page. The second redirect doesn't have an extension. What type of page is that /manufacturername ?

  3. #3
    Join Date
    Jan 2011
    Location
    Brooklyn
    Posts
    67
    Plugin Contributions
    0

    Default Re: redirect 301 working on one store but on the other

    Thanks for your replay JoeJoeJoe -

    Manufacturename/ represents a folder. I did try entering Manufacturename/index.html but that didn't work either. Researching the "redirect 301" online I did find that using the structure "folder/" should work since "folder/index.html" would be the file that would be implied.

    Just now I tried putting a real page in place of Manfacturername/ do see if it would redirect from and existing page on the site but it didn't work. That's why I'm thinking that it in this case the .htaccess file isn't even being accessed period.

    Another thing I JUST read somewhere is that the .htaccess requires Apache. I'll take a look at the hosting service to see if it includes that.

  4. #4
    Join Date
    Jan 2011
    Location
    Brooklyn
    Posts
    67
    Plugin Contributions
    0

    Default Re: redirect 301 working on one store but on the other

    I got it to work with my original line of code. I'll come back and post what I did later.

 

 

Similar Threads

  1. 301 redirect not working
    By plymgary1 in forum General Questions
    Replies: 5
    Last Post: 10 Jul 2010, 02:11 AM
  2. Replies: 8
    Last Post: 3 Jul 2010, 02:53 AM
  3. 301 redirect in htaccess not working
    By FrenchFrog in forum General Questions
    Replies: 10
    Last Post: 24 Aug 2007, 12:36 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
  •