Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-06-2005 13:48:57

phunter121
Member
From: UK
Registered: 03-22-2004
Posts: 101
Website

Seo Mod On Windows

For those of you who have the SEO mod, this is how to made it run on Windows.

I run a test copy of my live site on my PC and for ages I needed to maintain a non-SEO version on my local PC as the SEO version would not work.

Under UNIX, the SEO mod uses an .htaccess file to effectively translate the SEO friendly URLs (generated by the SEO mod) into URLs that CCP recognises. When ever a URL is received by your web server, it is passed through the .htaccess file to see if it is a SEO type URL, if it is, it reformats the URL (internally) to one that looks more like the traditions ccp urls (i.e. with all te "&" and "?").

Anyway less of the theory. Windows (I use XP Pro) does not recognise .htaccess files, but you can simulate them with a .ini file. However, to get your Windows server to execute a .ini file, you need a utility ISAPI Rewrite to exist and be enabled. your host may well have this utility already available, but is is not included with good old Windows XP Pro (i.e. it is not part of IIS). I installed a free version from these guys  which works perfectly.

Once installed, you will find a file httpd.ini in the directory created for the program software (e.g. c:/program files/helicon/ISAPI_Rewite/). It is in this file you add the rules that translate the URLs in much the same way as the .htaccess file.

Below are the contents of my httpd.ini file, you will need to change the directory to your own directory, but that is pretty much it. One think you must ensure is that the directory with the httpd.ini file has execute permissions.

CONTENTS OF httpd.ini are below:

Code:

[ISAPI_Rewrite]

RewriteRule /item--(.*) /cc/ww1/public_html/cgi-bin/ccp51/cp-app.pl\?seo=item--$1 [I,L]

RewriteRule /cat--(.*) /cc/ww1/public_html/cgi-bin/ccp51/cp-app.pl\?seo=cat--$1 [I,L]

RewriteRule /page--(.*) /cc/ww1/public_html/cgi-bin/ccp51/cp-app.pl\?seo=page--$1 [I,L]

RewriteRule /store--(.*) /cc/ww1/public_html/cgi-bin/ccp51/cp-app.pl\?pg=store [I,L]

Peter Hunter

Offline

 

#2 04-07-2006 16:07:09

daz_phil
Member
Registered: 10-11-2005
Posts: 52

Re: Seo Mod On Windows

hi,
Wonder if i can draw on your experience. I have done the same as you ie, set up a copy of my site on my local machine - running iis. I've got it all working but can't access the SEO modified product.category pages following your instructions.

I've istalled the isapi from helicontech and modified the ini file to read:

[ISAPI_Rewrite]

RewriteRule /item--(.*) C:/Inetpub/wwwroot/ccp51/cgi-bin/cp-app.pl\?seo=item--$1 [I,L]

RewriteRule /cat--(.*) C:/Inetpub/wwwroot/ccp51/cgi-bin/cp-app.pl\?seo=cat--$1 [I,L]

RewriteRule /page--(.*) C:/Inetpub/wwwroot/ccp51/cgi-bin/cp-app.pl\?seo=page--$1 [I,L]

RewriteRule /store--(.*) C:/Inetpub/wwwroot/ccp51/cgi-bin/cp-app.pl\?pg=store [I,L]

I've also ensured that the isapi_rewrite dir has execute permissions and that IIS is set to execute that isapi in the iis default website ISAPI filters tab.

Have you got any more tips?

Thanks for any help you might be able to offer..
Darren

Offline

 

#3 04-08-2006 07:05:01

steveblueradio
Member
From: Belfast, Northern Ireland
Registered: 06-28-2004
Posts: 755
Website

Re: Seo Mod On Windows

Hi,
  As far as I can see, he's left out the root [c:] part while you have included it. have you tried:

Code:

ISAPI_Rewrite]

RewriteRule /item--(.*) /Inetpub/wwwroot/ccp51/cgi-bin/cp-app.pl\?seo=item--$1 [I,L]

RewriteRule /cat--(.*) /Inetpub/wwwroot/ccp51/cgi-bin/cp-app.pl\?seo=cat--$1 [I,L]

RewriteRule /page--(.*) /Inetpub/wwwroot/ccp51/cgi-bin/cp-app.pl\?seo=page--$1 [I,L]

RewriteRule /store--(.*) /Inetpub/wwwroot/ccp51/cgi-bin/cp-app.pl\?pg=store [I,L]

Cheers
Steve


I'm Gene Hunt, Your DCI, And it's 1973, Nearly Dinner Time, I'm havin hoops........

Cheers,
Steve
-------------------

Offline

 

#4 04-08-2006 09:47:34

daz_phil
Member
Registered: 10-11-2005
Posts: 52

Re: Seo Mod On Windows

Thanks Steve, that has probably eliminated another issue but still no joy.

sad

Offline

 

#5 04-13-2006 09:19:30

daz_phil
Member
Registered: 10-11-2005
Posts: 52

Re: Seo Mod On Windows

still no joy - anyone else had any luck with this?

Offline

 

#6 04-15-2006 20:11:16

steveblueradio
Member
From: Belfast, Northern Ireland
Registered: 06-28-2004
Posts: 755
Website

Re: Seo Mod On Windows

are you getting any errors ? , also are you using the pay for or free version. as the free version cannot be used with a virtual site


I'm Gene Hunt, Your DCI, And it's 1973, Nearly Dinner Time, I'm havin hoops........

Cheers,
Steve
-------------------

Offline

 

#7 04-28-2006 04:14:45

orange
Member
Registered: 02-15-2006
Posts: 4

Re: Seo Mod On Windows

Thanks phunter121 for the original post. Very helpful.

Just have been through this process and for me the following worked (virtual server hosting multiple domains):

- ensured global httpd.ini was configured in the isapi_rewrite installation directory
- edited a copy of httpd.ini for the specific domain hosting ccp and placed it in the root (/httpdocs) folder

for the paths in the CCP domain httpd.ini - this worked for me:

RewriteRule /item--(.*)\.html /cgi-bin/cp-app.pl\?seo=item--$1 [I,L]
RewriteRule /cat--(.*)\.html /cgi-bin/cp-app.pl\?seo=cat--$1 [I,L]
RewriteRule /page--(.*)\.html /cgi-bin/cp-app.pl\?seo=page--$1 [I,L]

i.e. leaving out the full server paths and leaving them relative

I used the full version of isapi_rewrite in trial mode - then went on to register it as it does its job nicely.

Offline

 

Board footer