Support » Fixing WordPress » mod_rewrite rule to redirect SquareSpace URLs to WordPress URLs

Viewing 1 replies (of 1 total)
  • Modify the .htaccess in your web root adding the line…

    RewriteRule ^(.+).html$ $1 [L,NC,R=301]

    …so that the file looks something like the following…

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.+).html$ $1 [L,NC,R=301]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    You may have other lines as well. Mine is pretty vanilla but this is working for me.

    Here is a sample URL… San Elijo Lagoon Wildlife | Trevor Cooper Photography

    Hope it works for you as well.

    Trevor

Viewing 1 replies (of 1 total)
  • The topic ‘mod_rewrite rule to redirect SquareSpace URLs to WordPress URLs’ is closed to new replies.