phphtml.htaccesshttp-redirectzen-cart

Ultimate SEO Module + htaccess 301 .html redirect issue


I have successfully installed the Ultimate_SEO_URLs_v2.103 to my shopping cart installation (which is v1.36).

We are getting ready to go live with the site but I need to redirect html pages that are indexed by google to the new html page names.

The problem that I am having is trying to redirect pages with .html extensions to the page names that are rewritten by the htaccess file fromUltimate SEO URL.

It works if I use .htm page for the original page and redirect to the new counterpart page.

Here is the code I am using in .htaccess file (after Ultimate SEO rewrite code):

redirect 301 /old_conditions.html domain.com/conditions.html

so if you go to http://domain.com/old_conditions.html I want it to redirect to http://domain.com/conditions.html

It doesn't work, it goes to the page can not be found page!

Can someone please help me figure out why I can't get a redirect from a .html page when using the Ultimate SEO URL module?

Thanks in Advance!


Solution

  • You can use this rule in your root .htaccess using RewriteRule directive:

    RewriteRule ^44-wholesale-celosia\.html$ /flowers/celosia.html [L,NC,R=301]
    

    Also make sure this rule is right at top just below RewriteBase / line.