RewriteEngine On
RewriteBase /modx
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Not Found The requested URL /modx/features.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.33 Server at dev.kiron-design.com Port 80
I’ve done everything the doc’s have said to do yet it still is not working.
I don’t think the built in OS X Apache supports mod_rewrite out of the box, which is required for FURLs to work.
A quick Google turns this up to get it to work.
MODx does the rewriting of URL’s internally. The fact that those URLs are not then translated to the proper internal MODx URL by mod_rewrite tells me that it is not enabled or working for some reason.
RewriteLog "/path/to/a/text/file/rewrite.log"; RewriteLogLevel 1
Try temporarily adding this to your .htaccess:
RewriteLog "/path/to/a/text/file/rewrite.log"; RewriteLogLevel 1
This will write a log of the rewriting process and should give you an idea of what’s happening behind the scene. You can set the RewriteLogLevel to anything between 0 - 9 where 0 turns logging off and increasing numbers give you more an more detail. Be careful though to turn it off again asap as it can cause significant performance losses (and the log file will grow quite rapidly in size) especially with higher log levels.
RewriteRule ^(.*)$ http://www.google.com [R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
This discussion is closed to further replies. Keep calm and carry on.