Customer Care
Support Docs
Developer Docs
FAQs Library
Shopping Cart Help
SLA/TOS/AUP
Other Services
In The News


support department
Advertisement






Lost Password?
Home arrow Customer Care arrow Conxions Forum
<< Start < Prev 1 2 Next > End >>
Help with creating Search engine friendly URL's - 2005/11/27 08:05 Hi!
I am hoping that someone can help me understand what exact steps I need to take to create SEF urls in Miva. I have searched the Miva forums and have found little tidbits here and there, and have read the Miva documentation. However before I start banging my head against the wall, I was wondering if someone can bullet point the basic steps for me.

I saw Sebenza's posting at http://www.sebenza.com/site/content/view/56/62/
but this posting assumes that I know what I am doing, and before I mess with the .htaccess file I want to know what specifically I need to do.

Here is what I do know:
I know I need to add an href tag to the templates.
I know I need to put something in my htaccess file to the rewrite engine.

What I don't understand is how adding a regular href tag in a template will communicate with the htaccess file to rewrite the URL's.
I also don't understand where to put the href tag.
I also don't understand what specifically needs to be put into the htacess file.

Help!!!


Thanks,
Janice

PS. I was going to post the the Miva5 forum, but the answers are usually very very vague (at least to me because I am a noob) and the replies here have been very throrough and understandable
  | | The administrator has disabled public write access.
Re: Help with creating Search engine friendly URL's - 2005/11/30 10:10 Here is the unvague short of it. In your templates find any href values that point to the product or categories. I do it for basic screens too like BASK or additional screens I have created. Change all of these to this naming scheme:

Categorized Products
/p/&mvta:category:code;/&mvtaroduct:code;

Uncategorized Products
/p/&mvtaroduct:code;

Categories
/c/&mvta:category:code;

Screens you want friendly links for (example BASK below).
/s/BASK

Now in the .htaccess file you will use:
[size=9:f761712f64]
RewriteCond %{REQUEST_URI} !-s
RewriteRule ^p/(.*)/(.*) /Merchant5/merchant.mvc?Screen=PROD&Store_Code=CP&Category_Code=$1&Product_Code=$2
RewriteRule ^p/(.*) /Merchant5/merchant.mvc?Screen=PROD&Store_Code=CP&Product_Code=$1
RewriteRule ^c/(.*) /Merchant5/merchant.mvc?Screen=CTGY&Store_Code=CP&Category_Code=$1
RewriteRule ^s/(.*) /Merchant5/merchant.mvc?Screen=$1&Store_Code=CP
[/size:f761712f64]
Note on line wrapping... The above is actually only 5 lines but the line wrapping messes it up. When you put it into the .htaccess file the lines should begin with RewriteCond and then the 4 RewriteRules.

Happy Trails,

Wil
  | | The administrator has disabled public write access.
Re: Help with creating Search engine friendly URL's - 2005/11/30 16:30 Will,
As always YOU ROCK!

Thank you!
I hope to try this out in the next couple of days.

THANK YOU!!
You are the best.
  | | The administrator has disabled public write access.
Re: Help with creating Search engine friendly URL's - 2005/11/30 16:39 Ahhhh shucks.
  | | The administrator has disabled public write access.
Re: Help with creating Search engine friendly URL's - 2005/12/04 08:44 Hi!
OK I got the category links SEF'ed. (sounds like a dirty word ), through using the Sebenza cattree template. It took me a little while but I figured out how to adopt the example you gave me. SO MUCHO THANKS!

Now, I am working on SEF for product pages.
And for the life of me, I cannot find any href tags to the products in my templates. All I can find are Miva Item calls (I am using the category display page as my guinnea pig) .

So for example, I assume that mvt:item name="product_list" is a token for calling the product pages, but I cannot figure out where to edit that item so that I can change the href tag. I can see the "item" in Miva, but cannot find a href tag to edit.

Am I missing something obvious?
  | | The administrator has disabled public write access.
Re: Help with creating Search engine friendly URL's - 2005/12/04 11:08 You are simply missing one step. Go to pages > CTGY > Category Product List Layout. There you will find the individual product layout for each product on the CTGY page. That is where you want to change the URL by replacing the href to the product page with your own SEF url.

Wil
  | | The administrator has disabled public write access.
<< Start < Prev 1 2 Next > End >>

                                                        Contents Copyright 2001-2005 HyperConX International, LLC - All rights reserved