Sub-directories and page.php when migrating website to WP
-
Hello Folks,
I have a question regarding using paths (sub-directories) and “pages” in WordPress.
I currently have a website that I created using php code. Each php page is located in a sub-directory, organized by theme. I’d like to migrate this site to WordPress and retain the page links intact because they’re referred by other websites and search engines.
https://www.site.com/team/ directory contains the following pages:
https://www.site.com/team/index.php (default for https://www.site.com/team/)
https://www.site.com/team/andrew.php
https://www.site.com/team/sophia.phphttps://www.site.com/services/ directory contains the following pages:
https://www.site.com/services/index.php (default for https://www.site.com/services/)
https://www.site.com/services/design.php
https://www.site.com/services/analysis.php
https://www.site.com/services/service.phpMy challenges are to retain the directory structure and the .php extensions.
Here’s what I’ve done so far. I had added the “.php” extension to the Permalink using “Add Any Extension to Pages” plugin. I created a “page” called team.php which I can access using https://www.site.com/team.php. But when I created another “page” called “andrew” referring to team “page” as the parent, I get a 404 for https://www.site.com/team/andrew.php. I can have https://www.site.com/team/ and https://www.site.com/team/andrew/ but this doesn’t retain the current URLs.
Any guidance please?
Thank you,
-Joanna
- The topic ‘Sub-directories and page.php when migrating website to WP’ is closed to new replies.