WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. borbou
    Member
    Posted 1 year 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:
    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!

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  3. borbou
    Member
    Posted 1 year 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?

    Thanks!

  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
    Member
    Posted 1 year 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.

    http://japanmylove.com

Topic Closed

This topic has been closed to new replies.

About this Topic