• Hi:

    I have converted an static site into wordpress (I am also changing hosts), the url structure has changed from “www.site.com/something-something.html” to “www.site.com/something-something/”

    I would like to rewrite all extensions to have the trailing slash instead.

    # redirect to extensionless
    RewriteRule ^([^.]+)\.html$ http://www.something.com/$1 [R=301,L]

    works, if I have the .html file on server. If I don’t, I get a 404 error. Since I am switching hosts (I have old site on old host, and new wordpress on new host currently), do I need to transfer the static site over? Or is there a rewrite rule that will work if the page doesn’t exist.

    Thanks

  • The topic ‘converting static to wordpress 301’s’ is closed to new replies.