Support » Networking WordPress » RewriteRule for pre WordPress website to new multisite page

  • I am trying to add to root directory .htaccess to setup Redirects for old web pages that have been replaced with WordPress pages

    There are 3 sites in the Multisite
    Primary: http://catalyticovens.com/
    Sub: http://infraredovens.us/
    Sub: http://catalyticheaters.us/

    I would like to redirect specific pages from the two sub sites to specific links in the Multisite

    Follows what I have tried so far (unsuccessfully!)
    Instead I get redirected to the generic WP 404 Page Not Found

    <IfModule mod_rewrite.c>
    #301 Redirects for old pages to new pages
    RewriteEngine On
    RewriteRule ^catalytic-oven-types.htm/ http://infraredovens.us/ [L,R=301]
    RewriteRule ^catalytic-oven-design.http://catalyticovens.com/system-design/ [L,R=301]
    RewriteRule ^control-systems.htm/ http://catalyticovens.com/system-control/ [L,R=301]
    RewriteRule ^emissioninformation.htm/ http://catalyticovens.com/catalytic-heater-emissions/ [L,R=301]
    RewriteRule ^videos-flv.htm/ http://catalyticovens.com/applications/ [L,R=301]
    RewriteRule ^videos.htm/ http://catalyticovens.com/applications/ [L,R=301]
    RewriteRule ^oven-quote-form.php/ http://catalyticovens.com/oven-quote/ [L,R=301]
    RewriteRule ^catalyst.htm/ http://catalyticheaters.us/infrared-heater-catalyst/ [L,R=301]
    RewriteRule ^catalytic-parts.htm/ http://catalyticheaters.us/catalytic-heater-refurbishing-services/ [L,R=301]
    RewriteRule ^specs.htm/ http://catalyticheaters.us/infrared-heater-specifications/ [L,R=301]
    RewriteRule ^catalytic-heater-technology.php/ http://catalyticovens.com/applications/ [L,R=301]
    RewriteRule ^contact.php/ http://catalyticovens.com/contact-us/ [L,R=301]
    RewriteRule ^missing.html/ http://catalyticovens.com/ [L,R=301]
    
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+)  wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress
    
    </IfModule>

    Pointers where I am going wrong and how to fix would be appeciated!
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘RewriteRule for pre WordPress website to new multisite page’ is closed to new replies.