301 Redirect - Joomla

Discussion in 'Search Engine Optimization' started by nis4, Feb 13, 2013.

  1. #1
    Hi,

    I have the following problem:

    I have a joomla 1.1.15 website that is clearly obsolete, and it is in a subfolder. It has non sef urls that are indexed by google.

    In the root i have joomla 2.5 with good urls. All i want is to redirect all traffic from the subfolder (all the non sef urls) to the root.

    I have partially done it with a redirect from subfolder to root with:

    HTML Code:
    RewriteRule ^subfolder\?$ "http\:\/\/www\.my\-web\.com\/" [R=301,L]
    Code (markup):


    But that code does not redirect all other pages i.e.
    www.my-web.com/subfolder/index.php?option=com_content&task=view&id...
    Code (markup):


    I am strugling to find a correct solution that would point all those index.php links from my subfolder site to the new root site.

    This is how the part of custom redirects in my .htaccess looks like:




    With respect,
    nis4
     
    Last edited: Feb 13, 2013
    nis4, Feb 13, 2013 IP