Add .php or .html to a pages url (5 posts)

  1. borbou
    Posted 2 years ago #

    Hello everybody,

    I'm just updating an old site to a newer using wordpress. Old site has some pages ending in .html and some others in .php.

    For example:
    or website.com/welcome.html

    I would like to keep the same urls. Is there any way to add .php or .html to a wordpress page's url?

    I have found this plugin ".html on pages" but it adds .html to every page. I don't want it to be on every page, just some of them and some others with .php

    Is there any way to do that?
    Thank you very much!

  2. Andrew
    Forum moderator & snail smusher
    Posted 2 years ago #

    This similar thread on another forum may help

  3. borbou
    Posted 2 years ago #

    Hello Andrew, thank you for your reply.

    It describes how to change all pages extension from .php to .html. Not sure if it helped me..

    I just need only 2 pages to have the .php in url. Do you belive this is possible?

    Do you have any idea?


  4. It's best for SEO and consistency to stay with the same permalink structure for all posts pages; actually, it's a lot of work to mix and match permalinks and suffixes.

    Use the WordPress › Redirection plugin to set up and log 301 redirects for contact.php to /contact/ and welcome.html to /welcome/

  5. niceWP
    Posted 2 years ago #

    Guys, may i please ask you what should i do in order to create all my new pages without the .html extension i had on all my pages before today?

    Do i first disable the plugin that enabled my pages to have .html until now?

    And then (with the help of the redirect plugin that Songdogtech kindly posted here) redirect all my pages to their old .html address (so that i can keep the traffic)?

    And then i can create new pages without .html

    Is that how i should approach the issue?

    Thank you.


Topic Closed

This topic has been closed to new replies.

About this Topic