Replies: 1 comment 6 replies
|
I've just come across this same problem when migrating from IIS to Apache (Wheels 2.5.1) - Either I get a blank page or I get a "not available" - When I try to hit the .root page, I simply get /rewrite/? in the browser I see question was closed - Did you find a solution? I spend the later half of Friday trying to work this out. |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Moving a project to production (from commandbox rewrites to apache tomcat) with rewrite enabled I have this .htaccess in the root:
<IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_URI} ^.*/index.cfm/(.*)$ [NC] RewriteRule ^.*/index.cfm/(.*)$ ./rewrite.cfm/$1 [NS,L] RewriteCond %{REQUEST_URI} !^.*/(flex2gateway|jrunscripts|cfide|cf_scripts|cfformgateway|cffileservlet|lucee|files|images|javascripts|miscellaneous|stylesheets|wheels/public/assets|robots.txt|favicon.ico|sitemap.xml|rewrite.cfm)($|/.*$) [NC] RewriteRule ^(.*)$ ./rewrite.cfm/$1 [NS,L] </IfModule>The index.cfm still exists in the path and when trying a route without the index I get an error:
Type: Status Report
Message: The requested resource [/rewrite.cfm/user/marco/9f1c2] 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.
So it's on shared hosting which might have an impact on how to setup the .htaccess, I am already asking support by them to check stuff on their end, but any thoughts? Thanks!
All reactions