• 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:
    website.com/contact.php
    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This similar thread on another forum may help
    http://forums.powweb.com/showthread.php?t=70095

    Thread Starter borbou

    (@borbou)

    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?

    Thanks!

    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/

    niceWP

    (@nicewordpress)

    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.

    http://japanmylove.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add .php or .html to a pages url’ is closed to new replies.