Spike wrote:
<cfoutput>#getPageContext().getRequest().getHttpRequest().getServerName()#</cfoutput>

I figured it out. The FU servlet is probably not best suited for netbios names. It does work, however, it is not meant for websites that run off of virtual directories.


example: I have multiple intranet sites that run on this server (called Intranet). Each department has their own website running within their own virtual directory. The Friendly URL (FU) servlet is meant to only be run for websites running from the root domain (or netbios). This means that only one of the websites can use the FU servlet properly (or risk using similar name - or running out of them). And it wont reflect their URL in the URL string (ie. root URL is "http:// intranet/dept_A/", and all sub pages don't show "dept_A". Meaning, if I turn on FU with this intranet site each subpage looks like "http:// intranet/go/page1/" instead of "http:// intranet/dept_A/go/page1/").

I was trying to put "domain/virtual-directory" in the DOMAIN field. It turns out the servlet would only accept the domain (or netbios name). I also tried making the URL PATTERN look like "/virtual-dir/go/" (which looked correct when linking), but I guess you can only set this value equal to the value you set in the web.xml (making it a global setting for all websites. doh!).

Solution: Well, I don't have one. However, if a modification could be made to the servlet to allow you to override both of those attrbiutes (DOMAINS and URLPATTERN) you'd fix two problems in one shot.

A. You'd allow the developer to do set the website to virtual directories in either attribute.

B. You'd allow the developer to set custom URLPATTERNs for different websites on that server (right now the websites are forced to use the global setting (either "/go/" or whatever else you set it to).

If I only knew how to code in Java maybe I'd take a stab at it :). Perhaps if you ever make another version in the future you could consider these suggestions.

Anyway, thanks for your help Spike. That code you gave me to actually remove the old Friendly URLs is very helpful and I'll use it often in the future. I only wish it was included in the core and run when someone clicks on "Reset all Friendly URLs" like the link suggests. Maybe I'll script it myself and add it as a custom tab. I could have it dynamically remove all the values for the website being used at that moment (thus not touching the values for other websites).

Best Regards,

Jeff Coughlin

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to