.htaccess 301 Redirect

Hey guys I need to redirect some urls because I will be moving some things around. I have been going through all the topics on this forum in regards to 301 redirects and I am still not getting this to work.

I have mod_rewrite enabled and rewrite engine on in the .htaccess



RewriteCond %{REQUEST_URI} ./test.html

RewriteRule ^.
$ [url]http://www.mysite.com/test2.html[/url] [L,R=301]

This is not working. What should I do? Any help would be really appreciated.

This is what the above should look like:

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^test\.html$ "http\:\/\/www\.mysite\.com\/test2\.html" [R=301,L]

I have a similar situation, having hard time to redirect a page. I recently migrated from Prestashop to CS-CART.

My Old prestshop URL -[B] [url]mydomainname.com is for sale | www.brandforce.com

I create a similar page in cs-cart

Admin → Content → Page → add page → Created a Page

My New cs-cart: [B][url]mydomainname.com is for sale | www.brandforce.com

No luck!

SEO Rules also did not work

Please help.

I implemented below code, but no luck :frowning:

RewriteCond %{HTTP_HOST} ^.*$

RewriteRule ^test.html$ “http://www.mysite.com/test2.html” [R=301,L]


Does a basic 301 redirect not worK?

redirect 301 /Prestsahop-Page [URL]http://www.mydomainname.com/cscart-Page.html[/URL]

Thank you soo much for your help. It worked for me now.

How to propertly redirect www.mydomain.com/catalog/ to www.mydomain.com/catalog.html ?



I have been using what you suggested:

[QUOTE]redirect 301 /Prestsahop-Page [url]mydomainname.com is for sale | www.brandforce.com

This works, however, the url generated is: [url]mydomainname.com is for sale | www.brandforce.com

Now Google is including the url’s with the ?sef_rewrite=1 extension.

It works, but how should I eliminate the ?sef_rewrite=1?