• I have mod_rewrite rules in my .htaccess file which convert permalinks from my old Typepad blog to WP permalinks.

    The other day, someone helped me add similar rewrite rules to allow images originally uploaded to Typepad to display properly in WP. The images are now displaying fine.

    But in looking over my site stats tonight, I see hits from my old format permalinks. This means that the permalink conversion rewrite rules are no longer working & people using old links are getting “post not found” error msgs. when they’re brought to my WP site.

    Sure enough, when I looked over my .htaccess file I saw this error:

    # File modified on Thu Jun 23 15:26:28 2005 by server
    # \xef\xbb\xbf# is not a supported htaccess directive
    # # File modified on Thu Jun 23 15:15:28 2005 by server
    # \xef\xbb\xbf# is not a supported htaccess directive

    I’ve uploaded my .htaccess file ( https://www.richardsilverstein.com/photos/uncategorized/htaccess1.txt ) so you can take a look at it (I think it’s too big to display here in this post). Pls. someone tell me if there’s an obvious mistake to be corrected.

Viewing 1 replies (of 1 total)
  • Thread Starter richards1052

    (@richards1052)

    And here’s the rule we added to .htaccess on June 23rd:
    RewriteCond %{QUERY_STRING} ^/([^.]+)(.htm) [OR] RewriteCond %{QUERY_STRING} ^/([^.]+)(.jpg) RewriteRule ^.shared/image.html$ /%1%2 [R=301,L]

    For some reason, this rule seems to working (it was intended to allow for display of images imported from my old Typepad blog). But it’s caused a conflict with the permalink conversion rules which is preventing them from working.

Viewing 1 replies (of 1 total)
  • The topic ‘need help with .htaccess error’ is closed to new replies.