Quantcast
Channel: Lucee Dev - Latest topics
Viewing all articles
Browse latest Browse all 455

Lucee Not Reading htaccess File for SES Urls

$
0
0

I recently installed Lucee on Windows using the installer “lucee-5.4.5.23-windows-x64-installer” and am testing a website that previously ran using Coldfusion.

Everything works well, except that the htaccess file isn’t being read, which handles the Search Engine Safe (SES) Urls. Previously the URL mywebsite.com/profiles would translate to mywebsite.com/index.cfm?do=profiles using the htaccess rule:

RewriteRule ^([A-Za-z0-9-]+)/?$ index.cfm?do=$1 [NC,L]

Currently, if I run http://127.0.0.1:8888/mywebsite/profiles, it gives the error

HTTP Status 404 – Not Found
Type Status Report
Message The requested resource [/mywebsite/profiles] is not available
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/9.0.86

However, if I run the page http://127.0.0.1:8888/mywebsite/index.cfm?do=profiles it does work as expected.

This leads me to believe that the htaccess file isn’t being read/seen. I have tested this by adding some garbage to the htaccess file to see if it would cause the website to error, but it does not. So this file appears to be being ignored/bypassed.

Is there anything else I have to do since installing Lucee to get this to work properly? At my Lucee webhost (Vivio), the htaccess file is detected and works perfectly. So it’s just my local machine with this new installation of Lucee that seems to missing something. I checked the docs at: Configuring SES URL's on Windows OS's :: Lucee Documentation but this only seems to apply to older versions of Lucee.

So I’m not sure where to go from here. Any help would be appreciated.
Thanks.

OS: Windows 10 (10)
Java Version: 11.0.22
Tomcat Version: 9.0.86
Lucee Version: 5.4.5.23

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 455

Trending Articles