Hi Katy,
There's no reason why you can't use .php as part of a custom permalink structure in WordPress. The settings for how WordPress generates clean URLs are in wp-admin > Settings > Permalinks, so you choose Custom Structure and enter:
With that in place, if you create a post named Blah Blah it will take on the permalink /blah-blah.php (permalinks are lower cased and hyphenated) so if that matches your existing site page URLs and you're happy keeping .php in the URL that should be all you need to do.
A redirect on the other hand should be straight forward to add provided that there is a direct mapping between your old .php page names and the permalink structure being used on your WordPress site. Let's say your site is set-up to permalink to just:
When permalinks are enabled, you'll find a file called .htaccess in the top level folder, and in that file you'll find this line (assuming WordPress is installed in the top level)
To add the redirect as you've been advised to do, you could add the following immediately after the above line:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).php$ $1 [L,R=301]
Or in English.. if the file requested doesn't already exist; then take the part in-front of .php and issue a 301 "Moved Permanently" redirect to same URL but without .php on the end...
Hope this helps!
Developer of the Price Tapestry Price Comparison Script now with full WordPress Plugin!
Bookmarks