Forum Moderators: phranque

Message Too Old, No Replies

Using .htaccess to shorten URLs

Shortening my Miva Merchant SFL URLs, can it be done?

         

mcotten

8:19 am on Jan 7, 2004 (gmt 0)

10+ Year Member



I'm using the Miva Merchant ecommerce application.

I am using an add-on module called Search Friendly Links that changes the dynamic URLs to more search engine friendly URLs. However, the SFL URLs appears to be 4 directories deep and I would like to eliminate them or at least some of them.

Here are some examples:

Standard Miva Merchant category page URL:

http://www.mydomain.com/Merchant2/merchant.mvc?Screen=CTGY&Category_Code=Gift-Baskets

SFL creates:

http://www.mydomain.com/page/store-code/CTGY/Gift-Baskets

Which I would like to be:

http://www.mydomain.com/Gift-Baskets

Here is my .htaccess:

RewriteEngine On
RewriteCond %{REQUEST_URI} !-s
RewriteRule ^page/(.*) /Merchant2/merchant.mvc?page=$1

In the SFL URL: page is always there but means nothing and the store-code is always the same.

Product pages are the same except CTGY is PROD

Any help would be greatly appreciated!

[edited by: jdMorgan at 2:24 am (utc) on Jan. 8, 2004]
[edit reason] de-linked [/edit]

jdMorgan

2:26 am on Jan 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



mcotten,

Welcome to WebmasterWorld [webmasterworld.com]!

This thread [webmasterworld.com] may provide a good starting point, and then we can hammer out the details.

Jim