Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #487062

    Hi,
    actually has nothing to do with enfold. But I dont know where else i could get this answer. I need to redirect old pages form typo3 to the new installation of wordpress with enfold. The “normal” redirect rules dont work, cause of the part “index.php” in the old typo3 – urls.
    I want to redirect e.g.
    Redirect 301 http://lodenwalker.at/cms/index.php?id=6 http://lodenwalker.at/lodenwalke/
    Typically htaccess for wordpress:

    <IfModule mod_rewrite.c>
    
      RewriteEngine On
      RewriteBase /blog/
      RewriteRule ^index\.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
    
    </IfModule>

    I tried “normal” redirect, which does not work. Redirect with query strings (which are needed i guess) are way out of my programming knowledge.
    Can you help me out?
    Thanks in advance.

    #487493

    Hello,

    Would suggest you trying out a plugin like this:
    https://wordpress.org/plugins/redirection/

    Best regards,
    Josue

    #487581

    Hi Josue,
    not really. This plugin redirects post and pages inside wordpress. With this plugin you cannot redirct formerly known urls from an old website to the wordpress site.

    #487598

    Hey!

    Hm, to be honest i’m not familiar with typo3 but i think the rule should be something like this:

    Redirect 301 /cms/index.php?id=6 http://lodenwalker.at/lodenwalke/
    

    The first parameter should not be an absolute path.

    Best regards,
    Josue

    #487681

    Hi Josue,
    Now i tried this code

    
    RewriteCond %{QUERY_STRING} ^id=6$
    RewriteRule ^cms/index\.php$ /lodenwalke/ [R=301,L]

    and the redirect goes from
    http://www.lodenwalker.at/cms/index.php?id=6
    to
    http://www.lodenwalker.at/lodenwalke/?id=6
    which is pretty close. So i only need to skip the variable ?id=6
    Do you know how?
    thanks.

    #487960

    Unfortunately no, try posting your question in StackOverflow.

    Best regards,
    Josue

    #488816

    Hi Josue,
    got it.
    This is the htaccess Code that redirect old urls vom typo3 to wordpress

    # Redirect 301 from eg /cms/index.php?id=6 to /file/#anchor
    
    RewriteCond %{QUERY_STRING} id=6
    RewriteRule ^cms/index\.php$ /lodenwalke/#geschichte? [NE,L,R=301]
    
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘htaccess, redirect 301, index.php’ is closed to new replies.