pegarm
08/13/2022, 7:14 PMcoldbox create app name="myapp"
and no problems. I get the “Welcome to ColdBox!” screen and everything is fine.
Now… I create the .htaccess file for the redirects based off this page and no pages will load. I get a 403 error on everything. I’ve tried setting permissions on the files… I’ve narrowed it down to one of these lines:
RewriteRule ^$ /index.cfm?redirect_path=/ [QSA,NS]
RewriteRule ^(.*)$ /index.cfm?redirect_path=%{REQUEST_URI} [QSA,L,NS]
…in the .htaccess file, but I’m stuck resolving it. Commenting out these lines makes everything work again, but of course, the redirects do not.
Does anyone have any insight here that could fix this?pegarm
08/13/2022, 7:18 PMwil-shiftinsert
08/13/2022, 7:50 PMpegarm
08/13/2022, 7:51 PMwil-shiftinsert
08/13/2022, 7:51 PMwil-shiftinsert
08/13/2022, 7:52 PMwil-shiftinsert
08/13/2022, 7:54 PMpegarm
08/13/2022, 7:55 PMwil-shiftinsert
08/13/2022, 7:55 PMpegarm
08/13/2022, 8:11 PMRewriteEngine on
RewriteRule ^$ /index.cfm?redirect_path=/ [QSA,NS]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.cfm?redirect_path=%{REQUEST_URI} [QSA,L,NS]
and I’ve created the pathInfoProvider()
function in the /config/Router.cfc file and I’m still getting 403's.wil-shiftinsert
08/13/2022, 10:30 PMpegarm
08/13/2022, 10:31 PMwil-shiftinsert
08/13/2022, 10:47 PM