Hi, I got a new theme installed and during that process product URLs changed.
Because of that losing visitors and want to redirect the most important URLs to new ones. Because I'm totally a non-tech, I didn't understand the instructions I found. On the screenshot is obviously the new URL key. Should I replace that with the old one, or is this the wrong way to do it(Catalog -> Manage products)?
If you are able to help, please advice in as simple way as possible, because I'm total idiot on these things.
Thanks,
Hello @bbboutique
Sorry, the screenshot you've attached is not visible to me.
You can create redirects in your .htaccess file. It can be found in the root of your site (can be accessed via an FTP client)
You need to add a line or lines to create redirects:
Redirect 301 /oldfile.htm /newfile.htm
Hope that helps!
Hi,
Thanks. So, there must be a space before both slashes?
Where should I create the redirects, and should I write the "Redirect 301" to every line of redirects?
Thanks,
############################################ ## enable rewrites Options +FollowSymLinks RewriteEngine on ############################################ ## you can put here your magento root folder ## path relative to web root #RewriteBase /magento/ ############################################ ## uncomment next line to enable light API calls processing # RewriteRule ^api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L] ############################################ ## rewrite API2 calls to api.php (by now it is REST only) RewriteRule ^api/rest api.php?type=rest [QSA,L] ############################################ ## workaround for HTTP authorization ## in CGI environment RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] ############################################ ## TRACE and TRACK HTTP methods disabled to prevent XSS attacks RewriteCond %{REQUEST_METHOD} ^TRAC[EK] RewriteRule .* - [L,R=405] ############################################ ## redirect for mobile user agents #RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$ #RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302] ############################################ ## always send 404 on missing files in these folders RewriteCond %{REQUEST_URI} !^/(media|skin|js)/ ############################################ ## never rewrite for existing files, directories and links RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l ############################################ ## rewrite everything else to index.php RewriteRule .* index.php [L] </IfModule> ############################################