• lindyloves

    (@lindyloves)


    I recently decided to change the url on my WordPress blog from year/month/name to /postname/. I set up a 301 redirect in the htaccess file and most of the links work okay.

    However, I have noticed a few links are throwing up a 404 error and not redirecting. The links which aren’t working all end in .html even though most of the other links don’t have the .html. I have tried several codes suggested online to remove the .html and nothing has worked. If I manually remove the .html then reload the page it redirects fine but I need to find a way of removing the .html from the urls as visitors won’t know to remove this.

    I would really appreciate any help with this problem.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @lindyloves,
    1) U have checked your permalink setting for this?
    2) When u have added url on .html how to added using plugin or any other way.

    Thanks,
    Ravi Patel

    Thread Starter lindyloves

    (@lindyloves)

    Hi Ravi,

    Thanks for the quick reply.

    The permalink on the WordPress admin panel is set correctly to: custom structure – http://www.lindyloves.co.uk/%postname%

    I have a plugin set up to redirect my old blogger blog to the new url but Ii have deactivated all of the plugins to check if something there was causing the error but it didn’t help.

    Thanks.

    Thread Starter lindyloves

    (@lindyloves)

    Has anyone had an similar problems?

    Hi, Lindyloves.

    Have you already fix the issue. I encounter the same problem too.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing .html from urls (404 error after permalink change)’ is closed to new replies.