I thought this would be a fairly simple thing to do, but after hours of tinkering and searching, I can't make it happen. I need to simply append the .php to the end of a number of pages on a WP site, By default, it doesn't append any extension. At first I tried to do it from the permalinks settings, then I tried to do it with the .htaccess file using mod-rewrite, but I'm not getting the rule right, namely because the pages are in directories, ie:
I need to turn
mysite.com/directory1/subdirectory/page
into
mysite.com/directory1/subdirectory/page.php
Because all of the old links and pagerank etc are pointed at the .php. Any help would be greatly appreciated.
I need to turn
mysite.com/directory1/subdirectory/page
into
mysite.com/directory1/subdirectory/page.php
Because all of the old links and pagerank etc are pointed at the .php. Any help would be greatly appreciated.