Results 1 to 7 of 7

Installed at /catalog want to change to root

This is a discussion on Installed at /catalog want to change to root within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; When I installed osCMax, I selected the option to install it so you have to go to www.domainname.com/catalog to get ...

      
  1. #1
    Lurker
    Join Date
    Feb 2010
    Posts
    4
    Rep Power
    0


    Default Installed at /catalog want to change to root

    When I installed osCMax, I selected the option to install it so you have to go to www.domainname.com/catalog to get to it. When it is ready to go, I want to be able to go to DomainName.com -- Reserve Your Place In Cyberspace with DomainName.com Domain Name Registration Services! and have it come up. Is there a real easy way to do this, or should I just move all the files out of the catalog folder to the root on my server?

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,428
    Rep Power
    48


    Smile Re: Installed at /catalog want to change to root

    There are several ways to do this ...


    1) 301 Redirect (Recommended)
    • Edit your .htaccess file and add this line
      DirectoryIndex /catalog/index.php
    2) Reinstall your whole site (not recommended)




    3) Meta Tag redirect (not recommended)
    • Create an index.html file in your root directory like this:
    <html>
    <head>
    <title>Redirect<title>
    <META http-equiv="refresh" content="0;URL=http://www.mydomain.com/catalog/index.php">
    </head>

    <body>
    </body>
    </html>


    4) PHP Header Redirect (not recommended)
    • Create an index.php file in your root directory like this:
    <?php
    Header("Location: catalog/index.php");
    ?>
    I would definitely use the 301 redirect in .htaccess as this should allow the search engine to crawl your site correctly.

    Regards,
    pgmarshall
    _______________________________

  3. #3
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Default Re: Installed at /catalog want to change to root

    Interesting...
    I always use option 4 (with FDQN) and don't have crawler issues. Also, I create an index.html.down file, which is renamed whenever I need to bring the complete site down.
    Must give option 1 a try.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  4. #4
    Lurker
    Join Date
    Feb 2010
    Posts
    4
    Rep Power
    0


    Default Re: Installed at /catalog want to change to root

    Thanks! Will do.

  5. #5
    Lurker
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0


    Default Re: Installed at /catalog want to change to root

    worked a charm...thanks

  6. #6
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    3


    Default Re: Installed at /catalog want to change to root

    I too have just installed a fresh 2.0.25 into catalog (previously in the root) and added option 1, but was no longer able to log into admin.

    What do I need to do now?

  7. #7
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Lightbulb Re: Installed at /catalog want to change to root

    I still use Option 4 - no issues (that I'm aware of ).
    Otherwise you will have to explicitly use the FQDN/path eg. http://yourdomain.com/catalog/youradmin/index.php to access Admin. (not such a bad thing)
    Last edited by ridexbuilder; 07-19-2010 at 04:45 AM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

Similar Threads

  1. Problem after redirecting catalog to root
    By countdooku in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 10-12-2009, 09:35 AM
  2. Moving catalog to root
    By wkdwich in forum osCmax v2 Installation issues
    Replies: 11
    Last Post: 01-26-2009, 02:23 PM
  3. Moved catalog from /catalog/ to root and now no images_big
    By Redeye_Joe in forum osCMax v2 Features Discussion
    Replies: 3
    Last Post: 05-01-2006, 06:01 PM
  4. Install in ROOT or CATALOG Folder???
    By Masalai in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 12-29-2003, 05:05 PM
  5. Change root directory for /catalog after installation???
    By xavier_8_29_98 in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 09-27-2003, 05:36 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
  •