301 redirect for page and not for main domain

Discussion in 'Apache' started by TechMaster, May 6, 2012.

  1. #1
    How do i set 301 redirection for all the pages and not for main domain?

    i have a ecommerce site which was running on main domain.

    Entire ecommerce has been moved to another folder. Now i want to run wordpress blog on main domain.

    wp blog: www.machinery.com
    ecommerce: www.machinery.com/products/

    i have succeeded in htaccess redirecting all the pages to new location.

    however, main domain also redirects to new location.

    How do i set 301 redirection for pages and not for main domain?
     
    Last edited: May 6, 2012
    TechMaster, May 6, 2012 IP
  2. TechMaster

    TechMaster Peon

    Messages:
    225
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone? i've trying but nothing has worked so far.

    How to set 301 redirection for all the pages and not for main domain?
    i want to run blog on root directory and a store on another directory.
     
    TechMaster, May 7, 2012 IP