301 redirect details in knowledgebase

I been searching for this forum for creating 301 redirects. A lot of people are having the same issues as me.

They add “301 redirect /old-site /new-site.html” in htacess and it works but it also adds “?sef_rewrite=1” to the end of the url making it no good.

Any other attempts including:

<br />
# Needed before any rewriting<br />
RewriteEngine On<br />
### Built using the .htaccess 301 Redirect Generator from Web Site Advantage<br />
### http://seo-website-designer.com/HtAccess-301-Redirect-Generator<br />
### Place after 'RewriteEngine On' and before any CMS specific rewrite rules<br />
## 301 Redirects<br />
# 301 Redirect 1<br />
RewriteCond %{QUERY_STRING}  ^$<br />
RewriteRule ^old-site$ /new-site.html? [R=301,NE,NC,L]<br />

```<br />
<br />
... as suggested here: [url="http://seo-website-designer.com/HtAccess-301-Redirect-Generator"]http://seo-website-designer.com/HtAccess-301-Redirect-Generator[/url], don't do a thing. When I try to go a link... I get a 404 error.<br />
<br />
When I read threads, all I can find is where people have given up. No solution is given.<br />
<br />
I wish CS-Cart would add "301 redirect details" to their knowledge base because it is a major issue. I have over 400 not found urls. I would like to get these fixed. A step-by-step guide from the cart's developers would be a nice addition.

The most common mistake people make is not putting the rewrite(s) in mod rewrite tags.

This is exactly what I have.


DirectoryIndex index.html index.php

RewriteEngine on

Pleas note that RewriteBase setting is obsolete use it only in case you experience some problems with SEO addon.

Some hostings require RewriteBase to be uncommented


Your store url is http://www.yourcompany.com/store/cart

So “RewriteBase” should be:

RewriteBase /store/cart

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php?sef_rewrite=1 [L,QSA]

RewriteCond %{QUERY_STRING} ^$

RewriteRule ^custom-clothing$ /custom-clothing.html? [R=301,NE,NC,L]

RewriteBase /


I use to host a blog post on my server called custom-clothing. The domain was mysite.com/custom-clothing. I have replaced the site with CS-Cart and took the same post content but made it a news article which is at mysite.com/custom-clothing.html.

This seems pretty simple.

When i try to access mysite.com/custom-clothing, I get a 404 error. Why will it not transfer. Can somebody see the code, what is wrong? This seems pretty straightforward to me.

RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
RewriteRule ^custom\-clothing$ "http\:\/\/mysite\.com\/custom\-clothing\.html" [R=301,L]