Viewing 1 replies (of 1 total)
  • It sounds like you have the right idea with regard to your page structure. With the .php extension on pages, there’s a bit more of a conversation there… WordPress really isn’t going to accommodate the .php extension, to the best of my knowledge. Still, you’ve got options.

    The simplest (as in ‘least technically demanding’) option that springs immediately to mind which may be of help, both of which revolve around the 301 redirect. While I’m more of a developer than an SEO expert, my understanding is that 301 (Permanent Redirect) plays fairly nice with SEO when a url has changed – I verified this idea here: https://moz.com/learn/seo/redirection

    Here’s my most immediate suggestion: Use the Redirection Plugin

    1. Install the above plugin
    2. Proceed, from the dashboard, to Tools -> Redirection
    3. Click the ‘Redirects’ tab/link near the top of the page
    4. Begin plugging in the source URL and the target URL. In your case, the source url would be the one ending in .php, and the target would be the wordpress version of the same post. You’ll have to create a new rule for each legacy page you want to accommodate, though it looks like the plugin will also let you use regular expressions if you want to go that route.

    Is this helpful to you?

Viewing 1 replies (of 1 total)
  • The topic ‘Sub-directories and page.php when migrating website to WP’ is closed to new replies.