I need to change this link: http://www.expressnightout.com/content/2011/08/beyond_wagon_wheels_and_calico_country_c.php. to http://www.expressnightout.com/2011/08/beyond_wagon_wheels_and_calico_country_c/ Form the old site, there are many backlinks out there that I simply cannot change, so I need to write a rule to remove the /content/ AND take the .php off If you could help me write and/ or show me a good resource so I can figure this out myself. That would be great. Thanks
You may be able to do something like this: RewriteEngine On RewriteRule ^/content/(\d+)/(\d+)/(.*)\.php$ http://www.expressnightout.com/$1/$2/$3/ [R=301,L] Haven't tested it, so you may want to play around with it, but that's my $0.02
Thank you so much. The client is trying it, but this looks good. His first attempt did not work but I think his placement was wrong. <code> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress RewriteRule ^/content/(\d+)/(\d+)/(.*)\.php$ http://www.expressnightout.com/$1/$2/$3/ [R=301,L] php_value max_execution_time 600 php_value upload_max_filesize 100M php_value post_max_size 100M </code>