Thanks Geoff and Tyler for your responses. In terms of having both running, should I not use FriendlyURLData servlet? Or perhaps should I leave the servlet where it is and just remove the entries for friendly url's in the web.xml file.
Theo -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Geoff Bowers Sent: Friday, 25 November 2005 2:55 PM To: [email protected] Subject: [farcry-dev] Re: friendly urls Theo, Hmm.. this should be nothing to do with the rewrite.. its just matching for .*/go/(.*) and nothing else.. ie. index.cfm is not going to match that. Sounds like you need to check the default pages served by IIS (by default this is default.htm and default.asp). By the way the rewrite should really be: # Friendly URLS RewriteRules RewriteRule .*/go/(.*) /go.cfm?path=/go/$1 Buy had some debug code tacked on the end. Also the string index looks like you have the servlet running. If you use IISRewrite you must not use the servlet. You can only have one rewrite engine going. Hope that helps, -- geoff http://www.daemon.com.au/ Theo Galanakis wrote: > Hi, > > I just realised that the ISAPI filter appears to prohibit a default > page being used, when I specify www.test.com <http://www.test.com/> I > get a page cannot be found, however if i specifc > www.test.com/index.cfm <http://www.test.com/index.cfm> its fine. This > was working prior to the isapi filter. Is there a work around? > > Theo > > ------------------------------------------------------------------------ > > *From:* [email protected] > [mailto:[EMAIL PROTECTED] *On Behalf Of *guy phanvongsa > *Sent:* Friday, 25 November 2005 10:39 AM > *To:* [email protected] > *Subject:* [farcry-dev] Re: friendly urls > > yes you will need to apply the isapi filter, a free one is here > http://www.fileorama.com/applications/Ionics-ISAPI-Rewriting-Filter-1.0. 1/142539.htm > > download and extract it, > copy these two files: > IsapiRewrite4.dll > IsapiRewrite4.ini > > to any folder accessable from IIS (make sure the two files are in the > same folder) > > add the following line to the end of the IsapiRewrite4.ini file > > # Friendly URLS RewriteRules > RewriteRule .*/go/(.*) /go.cfm?path=/go/$1&bISAPIRewrite=1 > > add the filter via IIS, restart it, now any url refernce with a /go/ > in it will be redirected to the > project_folder/www/go.cfm > > Theo Galanakis wrote: > > Hi, > > I have tried to enable friendly url's in FC3.0. However keep getting > this error when I visit a page on the website that has a frieldly url. > > *500 String index out of range: -1* > > String index out of range: -1 > > Do I need to install the ISAPI filter? And where can I find one? > > Can someone please help? > > Environment: > > CFMX7 > > IIS6 > > FC3.0 > > Theo > > ------------------------------------------------------------------------ > > *From:* [email protected] > <mailto:[email protected]> > [mailto:[EMAIL PROTECTED] *On Behalf Of *guy phanvongsa > *Sent:* Thursday, 17 November 2005 10:37 AM > *To:* [email protected] <mailto:[email protected]> > *Subject:* [farcry-dev] Re: friendly urls > > you will probably need to check a couple of things, first check > whether you have friendly urls enabled by going > Admin -> General -> Configuration -> Config Files -> Plugins > and set the FU value to Yes > > Admin -> General -> Configuration -> Config Files -> FUSetting > and make sure it has a urlpattern eg. /go/ > > now when you make an update to your navigation and content items a > friendly url will be generated for it automatically > > now depending on whether you are using make a the web server point to > when the '/go/' is in the url 'redirect' to project_root/www/go.cfm > but not change the url > > Apache: > use mod_rewrite > uncomment this near the top of page somewhere (bout line 164) > LoadModule rewrite_module modules/mod_rewrite.so > > and add this line (without the ---) to your virtual host > --------------------------------------------------- > RewriteEngine on > # friendly url rules > RewriteRule ^/go/(.*)$ /go.cfm?path=/go/$1 [L,PT] > --------------------------------------------------- > > IIS > you need to add an ISAPI rewrite filter > a free one is here > http://www.fileorama.com/applications/Ionics-ISAPI-Rewriting-Filter-1.0. 1/142539.htm > -- Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering. http://www.mailguard.com.au/mg -- _______________________________________________________________________________ Notice from Melbourne Business School Ltd The information contained in this e-mail is confidential, and is intended for the named person's use only. It may contain proprietary or legally privileged information. If you have received this email in error, please notify the sender and delete it immediately. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient Internet communications are not secure. You should scan this message and any attachments for viruses. Melbourne Business School does not accept any liability for loss or damage which may result from receipt of this message or any attachments. ______________________________________________________________________________
