Knowledgebase: Hosting FAQ > Tips and Tricks
Redirect old uncompiled store URLs to compiled URLs
Posted by - NA -, Last modified by Jen Ferraz on 11 April 2011 01:02 PM
It's common for you to lose search engine and bookmark links after upgrading to compiled because the store file extensions change from .mv to .mvc. The following will keep the old links working when placed in a .htaccess file in your html directory.

#REWRITE .mv to .mvc when .mvc file exists
RewriteEngine on
RewriteBase /
RewriteRule ^(.*).mv$ $1 [C,E=WasMV:yes]
RewriteCond %{REQUEST_FILENAME}.mvc -f
RewriteRule ^(.*)$ $1.mvc [S=1]
RewriteCond %{ENV:WasMV} ^yes$
RewriteRule ^(.*)$ $

(475 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako