Keep the same permalink structure and put something like this in your root (not WordPress*) .htaccess:
Redirect 301 /modules/wordpress/ http://www.example.com/blog/
*If WordPress is at the site root, make sure that you don’t add anything inside the WordPress section of the .htaccess.
For instructions, do a Google search for: 301 redirect.
Thanks so much Iridiax
How do I test this as I have not yet moved all wp application files?
Do I need to do a fresh WP installation in the new location if so what about the database?
There is no testing for this. You must have your WordPress moved before doing this. You don’t need to keep WordPress at both the old and new locations.
See this: http://codex.wordpress.org/Moving_WordPress
Better way:
1. Move WordPress as directed.
2. Keep the /modules/wordpress directory (not the contents of it! just the empty directory) and add this to an .htaccess file in there:
RewriteEngine On
RewriteBase /modules/wordpress/
RewriteRule ^(.*)$ http://www.example.com/blog/$1 [R]
That will redirect the traffic to the new site, including the posts and such, making them go to the same page on the other site.
Thanks guys I will give that a try. Otto42 I assume this does not require any DB tweeking or is that covered in the link iridiaz provided?