Yes, it adds it wether there is a trailing slash or not. This is what I mean where I'll need to add something to make sure it has a trailing slash or not. Where I am having trouble is in the regex. How to determine if the url submitted has an actual file name or is it a domain name/folder. We only want to add the trailing slash to those that are not the actual file. With so many possible file extensions (.cfm, .mp3, .htm, .html, etc..etc..) I can't come up with an expression to get all of them. Any ideas? Need a regex guru here.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.