marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Shortening Shop URL

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Shortening Shop URL »
Welcome, Guest. Please Login or Register.
12/14/17 at 13:24:38
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Shortening Shop URL
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Shortening Shop URL  (Read 521 times)
PDM
Green Dragon
*

Posts: 6



Go Scots!
   

Shortening Shop URL
« on: 07/30/08 at 09:14:55 »
Reply with quote Modify message

I would like to shorten the URL to my shop as much as possible. I read in another post that this can be done in the cgi image file, but I need the exact code.

I'd like to remove the "/cgi-bin/store" part of the URL from:

http://www.mydomain.com/cgi-bin/store/alias.shopname...htm

I tried *||||_/cgi-bin/store_||||__ and *||||_/cgi-bin/store_||||_ _ in the image file, but neither seemed to work. I don't really understand the syntax of this file, so any help would be appreciated.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Shortening Shop URL
« Reply #1 on: 07/30/08 at 09:25:14 »
Reply with quote Modify message

The syntax is, nearly all the time:

*||||replace this||||with this

Now, I'm presuming that you're already going to have some kind of mod rewrite-like solution to handle the new URL format?

And you'd want to replace

/cgi-bin/store/cpshop.cgi

right?
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
PDM
Green Dragon
*

Posts: 6



Go Scots!
   

Re: Shortening Shop URL
« Reply #2 on: 07/30/08 at 20:05:10 »
Reply with quote Modify message

Okay, that worked for the image file, thanks, Marty. But I didn't realize I had to do a mod_rewrite too.

I've renamed cpshop.cgi to "store" and it's in the cgi-bin directory, so I"m now just trying to remove /cgi-bin/store from the URLs.

I thought this would work but it doesn't:

RewriteRule ^([^]+)\.com/shop([^]+) ([^]+)\.com/cgi-bin/store/shop([^]+) [L]


Logged
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright © 2000-2001, X-Null. All Rights Reserved.