Hi Charless
Yes Friendly URL's are producing results.html, and on Apache web server of course.
When using your code sample above the page is resolving to:
www.example.com/results.html?id=122218886&category=Finance%20General fine but not rewriting the intended part.
If I manually enter the URL as intended it just 404's. It's as if it's completely ignoring the rule, however after researching this (all night!) I have got the "L" operator in the correct place to process that RewruteRule last.
Here is most of the .htaccess file, perhaps this will shed more light?
# For full documentation and other suggested options, please see
# http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
# including for unexpected logouts in multi-server/cloud environments
# and especially for the first three commented out rules
#php_flag register_globals Off
#AddDefaultCharset utf-8
#php_value date.timezone Europe/Moscow
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.EXAMPLE.com [NC]
RewriteRule (.*) http://www.EXAMPLE.com/$1 [R=301,L]
# Exclude /assets and /manager directories and images from rewrite rules
RewriteRule ^(manager|assets)/*$ - [L]
RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
# Results rule #
RewriteRule ^results/([A-Za-z]+)/([0-9]+)/?$ index.php?q=results&id=$2&category=$1 [NC,L]
# The MODx Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Reduce server overhead by enabling output compression if supported.
#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType text/javascript "access 1 hour"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType text/html "access plus 1 second"
ExpiresDefault "access plus 1 week"
</IfModule>
EXAMPLE.com is my url changed.
Thanks for any more help you can give.
[ed. note: shaundiamonds last edited this post 15 years, 2 months ago.]