Hi guys, I'm running a new wordpress installation instead of my old html site. I have a lot of pages that have this structure www.domain.com/word.htm I want to redirect all these pages to tags under the new website so that previous URL will be redirected to www.domain.com/tag/word I know it's doable using .htaccess, but I just don't know how OR - is there a way to change the tag structure in wordpress to go from www.domain.com/tag/word to www.domain.com/word.htm Either way is fine for me. Any help will be appreciaed. Thanks
try to use these in the top of your .htaccess file: RewriteEngine on RewriteRule ^(.*).html$ http ://domain.com/tag/$1 [R=301,L]
Hi, thanks .. But wherever I put that (top/ middle / bottom) in the htaccess file, I get a internal server error .. This is the existent code in the htaccess file # 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
just try to add RewriteRule ^(.*).html$ http ://domain.com/tag/$1 [R=301,L] after line RewriteRule . /index.php [L]