Man, I suck at regex. So here is what I need to do with MOD_REWRITE.
If the URL contains a specific leading text AND it doesn't have a file extension then add a default page to the request. Basically this:
but only if the first part of the URL is /servlet. Also, www.site.com/servlet/directory would be equivalent as the first condition but I think apache adds a / to the request automatically.
Any help would be greatly appreciated.
Thanks,
The Dan
If the URL contains a specific leading text AND it doesn't have a file extension then add a default page to the request. Basically this:
Code:
www.site.com/servlet/directory/ ----> www.site.com/servlet/directory/index.htm
but only if the first part of the URL is /servlet. Also, www.site.com/servlet/directory would be equivalent as the first condition but I think apache adds a / to the request automatically.
Any help would be greatly appreciated.
Thanks,
The Dan