.htaccess File – Modx friendly URLs
# Vital components of your .htaccess file RewriteEngine On RewriteBase / # Force “www.yourdomain.com” instead of just “yourdomain.com” RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com [NC] RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L] # The Friendly URLs part RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] Make sure your site is still working… you can still use […]