views:

22

answers:

0

I'm trying to move one website to wordpress and I want to redirect a few pages to the new address. I've added the following lines in htaccess and the redirection does not work as I want. Instead of opening http://domain.com/category/category1/ it opens http://domain.com/?option=com_content&task=blogcategory&id=13&Itemid=26 when I open http://domain.com/index.php?option=com_content&task=blogcategory&id=13&Itemid=26

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /


Redirect 301 /index.php?option=com_content&task=blogcategory&id=13&Itemid=26 http://domain.com/category/category1/
Redirect 301 /index.php?option=com_content&task=blogcategory&id=14&Itemid=28 http://domain.com/category/category2/


RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Any suggestion?