Hi, will the latest commandbox support .htaccess r...
# box-products
g
Hi, will the latest commandbox support .htaccess rewrites rules or do we need to set up any .jar files? because I am trying to enable and set the .htaccess (.htaccess is in the project root directory) file path like the below but the rewrite rules are not applying. Can anyone please help?
Copy code
server set web.rewrites.enable=true
server set web.rewrites.config= .htaccess
I found the below warning in the trace logs
Copy code
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/C:/Users/John/.CommandBox/server/A050B21C76ADC5FA642B020347636AC5-htdocs4/lucee-5.3.8.206/WEB-INF/lib/lucee-5.3.8.206.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
b
Not entirely sure what you're asking. That warning you posted has nothing to do with rewrites. Tuckey rewrites has basic support for an htaccess file, but it's not clear from your question specifically what you're trying and what about it isn't working.