• elfrock

    (@elfrock)


    I’ve converted my site from html to php, and am using .htaccess redirect:
    RedirectMatch 301 (.*)\.html$ https://www.peterussell.com$1.php

    However, this causes wordpress to behave strangely. It always returns the current blog whatever search or archive is selected. Even “about” returns the current blog (but not login or register). Plus it is taking a long time to return the page.

    This is strange because as far as I can see wordpress uses no html pages, so my redirect should not affect it. But when I remove the redirect line, it works fine.

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    You appear to be using default permalinks. Is there an .htaccess file in the wordpress directory? Try removing/renaming it.

    Thread Starter elfrock

    (@elfrock)

    No there’s no .htaccess file there.

    Thread Starter elfrock

    (@elfrock)

    Resolved it, eventually, thanks to mention of permalinnks. I changed the permalink structure, got the new mod_rewrite code and inserted into my .htaccess, and all seems to be working OK.

    Thanks for help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘.htaccess redirect corrupting wordpress’ is closed to new replies.