• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Redirect index.php to index.html

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Redirect index.php to index.html

This topic is: not resolved

Tagged: html, php, redirect, seo

  • This topic has 4 replies, 3 voices, and was last updated 8 years ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 24, 2015 at 7:09 pm #145566
    stampede
    Member

    Howdy,
    I am building a new genesis wordpress site from an existing php site, not migrating or merging the site or code, just building what someone has in an old php site who wants the upgrade to be a wordpress framework.
    I will be keeping the same naming page conventions in the new site as was for the old with the exception of the extensions.
    My question is;
    Will some kind of permanent redirects from .php to .html take care of a long history of unbroken seo links for the site or is there an dimension of what I'm doing that I am not addressing?
    My searches don't return the specifics I'm looking for, I may just not know all the questions that I need to be asking.
    Thank you to anyone who may be able to point me in the right direction.

    https://hatchetresort.com/index.php
    March 24, 2015 at 7:14 pm #145569
    mickmel
    Member

    Not sure what you mean by "from .php to .html". I would assume you'll take pages like "grill.php" and have them simply be "/grill/".

    If so, the Redirection plugin can help quite a bit with that.

    Example. This page:

    http://www.cardlog.com/our_company/history.htm

    Now redirects to this page:

    http://www.cardlog.com/about-cardinal/history/

    via that plugin. Works well, and preserves most of your link/seo equity.

    March 24, 2015 at 10:46 pm #145574
    Brad Dalton
    Participant

    Try this https://codex.wordpress.org/Class_Reference/WP_Rewrite


    Tutorials for StudioPress Themes.

    March 25, 2015 at 12:02 am #145576
    stampede
    Member

    Guess I just noticed the .php at the end of every page address and wanted to understand or convey that they would not be .php but you are correct Mickmel, they will just end in /
    I'll snag the plugin and then try to understand "Class Reference/WP Rewrite" that Braddalton suggested to make sure I'm not missing something.
    Thank you both for your help.

    March 25, 2015 at 12:24 am #145577
    Brad Dalton
    Participant

    You can rewrite the URL's anyway you like in .htaccess using rewrite rules.

    The plugin is very convenient however each Edit Post screen already includes a built in redirect option and the redirection plugin is on the WPEngine banned list for inefficiency so .htaccess is your best bet in my opinion.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble