sneiland
08/30/2023, 5:06 PMOptions +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) /index.cfm/$1
If I hit tomcat directly using the seo url https//{mydomain}8888/features I see the features page normally.
If I hit apache using non seo url http://{mydomain}/?action=features I also see the features page normally.
But
If I hit apache using the seo url http://{mydomain}/features I get a 404 and 'Not Found The requested URL was not found on this server.'
My httpd.conf file contains
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.cfm index.html
</IfModule>
<IfModule proxy_module>
ProxyPreserveHost On
ProxyPassMatch ^/(.+.cf[cm])(/.)?$ <http://127.0.0.1:8888/$1$2>
ProxyPassMatch ^/(.+.cfml)(/.)?$ <http://127.0.0.1:8888/$1$2>
ProxyPassReverse / <http://127.0.0.1:8888/>
</IfModule>
Been banging my head on this and I dont see why this is not working for mebdw429s
08/30/2023, 5:14 PMsneiland
08/30/2023, 5:15 PMRewriteRule ^features /index.cfm?action=features
But I dont want to have to do that for every actionbdw429s
08/30/2023, 5:15 PMfeatures in your web root?sneiland
08/30/2023, 5:15 PMsneiland
08/30/2023, 5:15 PMbdw429s
08/30/2023, 5:15 PMbdw429s
08/30/2023, 5:16 PMbdw429s
08/30/2023, 5:16 PMsneiland
08/30/2023, 5:16 PMsneiland
08/30/2023, 5:17 PMsneiland
08/30/2023, 5:17 PMbdw429s
08/30/2023, 5:17 PMbdw429s
08/30/2023, 5:17 PMsneiland
08/30/2023, 5:17 PMbdw429s
08/30/2023, 5:18 PMbdw429s
08/30/2023, 5:18 PMRewriteCond %{REQUEST_FILENAME} !-f
off as a testbdw429s
08/30/2023, 5:18 PMbdw429s
08/30/2023, 5:18 PMsneiland
08/30/2023, 5:19 PMbdw429s
08/30/2023, 5:19 PMRewriteRule ^features /index.cfm?action=features
works, but
RewriteRule ^(.*) /index.cfm/$1
doesn't?ryan
08/30/2023, 5:20 PMsudo a2enmod rewrite
The command activates the module or—if it is already activated, displays the words, "Module rewrite already enabled"bdw429s
08/30/2023, 5:20 PM^/(.+.cf[cm])(/.)?$bdw429s
08/30/2023, 5:20 PMbdw429s
08/30/2023, 5:20 PMbdw429s
08/30/2023, 5:21 PM/something.cfm/ (or /something.cfc/) and then a single character?bdw429s
08/30/2023, 5:21 PMbdw429s
08/30/2023, 5:22 PM? after so I think the trailing slash is optional but that still doesn't seem rightbdw429s
08/30/2023, 5:22 PM/something.cfm/anything/here/foreversneiland
08/30/2023, 5:24 PMbdw429s
08/30/2023, 5:24 PM^/(.+.cf[cm])(/.)?$
does not match
/index.cfm/featuresbdw429s
08/30/2023, 5:24 PMbdw429s
08/30/2023, 5:24 PMryan
08/30/2023, 5:25 PM/filename.cfc and /filename.cfc/a, for example.sneiland
08/30/2023, 5:25 PMryan
08/30/2023, 5:26 PM/filename.cfc/asdf would not workryan
08/30/2023, 5:27 PM^/(.+.cf[cm])(/.*)?$ might workryan
08/30/2023, 5:28 PMsneiland
08/30/2023, 6:46 PMsneiland
08/30/2023, 10:50 PM<IfModule proxy_module>
ProxyPreserveHost On
ProxyPassMatch ^/(.+.cf[cm])(/.*)?$ <http://127.0.0.1:8888/$1$2>
ProxyPassMatch ^/(.+.cfml)(/.*)?$ <http://127.0.0.1:8888/$1$2>
ProxyPassReverse / <http://127.0.0.1:8888/>
</IfModule>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI}% !^/index.cfm
RewriteRule ^(.*) /index.cfm/$1 [L]