/ Published in: Apache
In MODx, insert below:
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteCond %{REQUEST_URI} !^/name-of-directory(/.*)?$ [NC] RewriteRule .* rewrite?%{REQUEST_URI} [L]