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.
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:
[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]
Offline
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
Hi,
As far as I can see, he's left out the root [c:] part while you have included it. have you tried:
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
Offline
Thanks Steve, that has probably eliminated another issue but still no joy.
Offline
still no joy - anyone else had any luck with this?
Offline
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
Offline
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