m5 old links
I swore I sent this earlier but it seems I didn't.
You don't need an SFL program to allow old SFL type links to work
with MIVA Merchant 5, all you need are some good rewrite rules
written.
Generating the urls in that style in the store is where you need
a module, or code changes, or template changes, or whatever.
For example:
Normal url generated something like this:
"{ g.someglobalvar $ 'screen=3DCTGY&Category_Code=3D' g.category_code
}"
Results in something like this:
somesite.com/mm5/merchant.mvc?store_code=3Dmystore&screen=3DCTGY&Ca te
gory_Code=3Ddvds
SFL style link is something like this:
somesite.com/page/mystore/CTGY/dvds
rewrite rule is something like this:
.*/page/(.*)/CTGY/(.*)/$
/mm5/merchant.mvc?store_code=3D$1&screen=3DCTGY&categor y_code=3D$2
An SFL style url to a product page is something like this
somesite.com/page/mystore/PROD/DA001
rewrite rule needs to be something like this:
.*/page/(.*)/PROD/(.*)/(.*)/$
/mm5/merchant.mvc?store_code=3D$1&screen=3DPROD&product _code=3D$3&categ
ory_code=3D$2
But to make all your pages generate urls like that you need to
edit the templates containing the urls.
For the product list for example the code is like this:
<a
href=3D"&mvt:global:sessionurl;Screen=3DPROD&Store _Code=3D&mvta:global:
Store_Code;&Product_Code=3D&mvta:product:code;&Cat egory_Code=3D&mvta:
global:Category_Code;">&mvt:product:code;</a>
You need to change it to something like this:
<a
href=3D"http://yoursite.com/page/&mvta:global:Store_Code;/PROD/&mvt
a:global:Category_Code;/&mvta:product:code;">&mvt:product:code;</
a>
If you were going to do such editing there are much better styles
of urls to use than the SFL style, having urls with full names of
categories and products is much better from an SEO stand point.
For example we have made manual changes to clients' 4.x MMUI
stores very quickly and easily that allows urls like:
site.com/some-descriptive-category-code-here.html
site.com/some-long-programaticly-altered-to-add-dashes-product-na
me-here_sku.html
The rewrite rules to convert such urls to Miva Merchant pages are
simple.
But anyway back to MM5, there are some challenges in that certain
urls aren't readily available in the templates, most notably the
category tree, but you can either replace the module that
controls the category tree, use a hard coded one, or there may be
other options that could be come up with after a bit of thinking.
Also there are limitations in the token language in that you
can't use Miva script directly so for fancy rewritten urls the
creation of a small module that does the rewrite that can be
loaded as an item and then referenced on the pages would probably
be the way to go for fancy urls like the ones we normally do in
old 4.x MMUI stores.
Anyway I hope these thoughts help.
- Jeff Huber
President, 4TheBest eCommerce Solutions
http://4TheBest.com
[email protected]
Office: 760-742-1469
Cell: 760-445-8454
=20
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jen
Ferraz
Sent: Tuesday, May 03, 2005 9:23 AM
To: [email protected]
Subject: RE: [m5u] m5 old links
John:
You can create new Pages with the same
codes as you have used in the Viking module.
The SFL links will be dependent on the availability
of a similar module for MM5.
Jen
Hostasaurus.Com
Miva Premier Hosting Partner
813.971.8772
[email protected]
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of John
Fischer
Sent: Tuesday, May 03, 2005 12:22 PM
To: [email protected]
Subject: [m5u] m5 old links
Group-
I have a store that depends on the millions of links scattered
all over
the
internet. For example, Google alone has over 90,000 pages indexed
in my
site
these are Merchant style links, and SFL links as well as static
pages
and
Viking coders additional screens pages with SFL link styles and
Merchant
links.
When I migrate how can I ensure all of these links will still
work?
Cheers,
John
I swore I sent this earlier but it seems I didn't.
You don't need an SFL program to allow old SFL type links to work
with MIVA Merchant 5, all you need are some good rewrite rules
written.
Generating the urls in that style in the store is where you need
a module, or code changes, or template changes, or whatever.
For example:
Normal url generated something like this:
"{ g.someglobalvar $ 'screen=3DCTGY&Category_Code=3D' g.category_code
}"
Results in something like this:
somesite.com/mm5/merchant.mvc?store_code=3Dmystore&screen=3DCTGY&Ca te
gory_Code=3Ddvds
SFL style link is something like this:
somesite.com/page/mystore/CTGY/dvds
rewrite rule is something like this:
.*/page/(.*)/CTGY/(.*)/$
/mm5/merchant.mvc?store_code=3D$1&screen=3DCTGY&categor y_code=3D$2
An SFL style url to a product page is something like this
somesite.com/page/mystore/PROD/DA001
rewrite rule needs to be something like this:
.*/page/(.*)/PROD/(.*)/(.*)/$
/mm5/merchant.mvc?store_code=3D$1&screen=3DPROD&product _code=3D$3&categ
ory_code=3D$2
But to make all your pages generate urls like that you need to
edit the templates containing the urls.
For the product list for example the code is like this:
<a
href=3D"&mvt:global:sessionurl;Screen=3DPROD&Store _Code=3D&mvta:global:
Store_Code;&Product_Code=3D&mvta:product:code;&Cat egory_Code=3D&mvta:
global:Category_Code;">&mvt:product:code;</a>
You need to change it to something like this:
<a
href=3D"http://yoursite.com/page/&mvta:global:Store_Code;/PROD/&mvt
a:global:Category_Code;/&mvta:product:code;">&mvt:product:code;</
a>
If you were going to do such editing there are much better styles
of urls to use than the SFL style, having urls with full names of
categories and products is much better from an SEO stand point.
For example we have made manual changes to clients' 4.x MMUI
stores very quickly and easily that allows urls like:
site.com/some-descriptive-category-code-here.html
site.com/some-long-programaticly-altered-to-add-dashes-product-na
me-here_sku.html
The rewrite rules to convert such urls to Miva Merchant pages are
simple.
But anyway back to MM5, there are some challenges in that certain
urls aren't readily available in the templates, most notably the
category tree, but you can either replace the module that
controls the category tree, use a hard coded one, or there may be
other options that could be come up with after a bit of thinking.
Also there are limitations in the token language in that you
can't use Miva script directly so for fancy rewritten urls the
creation of a small module that does the rewrite that can be
loaded as an item and then referenced on the pages would probably
be the way to go for fancy urls like the ones we normally do in
old 4.x MMUI stores.
Anyway I hope these thoughts help.
- Jeff Huber
President, 4TheBest eCommerce Solutions
http://4TheBest.com
[email protected]
Office: 760-742-1469
Cell: 760-445-8454
=20
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jen
Ferraz
Sent: Tuesday, May 03, 2005 9:23 AM
To: [email protected]
Subject: RE: [m5u] m5 old links
John:
You can create new Pages with the same
codes as you have used in the Viking module.
The SFL links will be dependent on the availability
of a similar module for MM5.
Jen
Hostasaurus.Com
Miva Premier Hosting Partner
813.971.8772
[email protected]
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of John
Fischer
Sent: Tuesday, May 03, 2005 12:22 PM
To: [email protected]
Subject: [m5u] m5 old links
Group-
I have a store that depends on the millions of links scattered
all over
the
internet. For example, Google alone has over 90,000 pages indexed
in my
site
these are Merchant style links, and SFL links as well as static
pages
and
Viking coders additional screens pages with SFL link styles and
Merchant
links.
When I migrate how can I ensure all of these links will still
work?
Cheers,
John
Comment