.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 […]
MODX/CMS – Problem with friendly urls
Problem: I’ve turned on friendly urls in the admin section of modx, when I try to view a page which should show the name of the file eg: about as opposed to id?23 the page doesn’t showup. The Fix: 1. required mod rewrite should be enabled… 2. Make sure you renamed the ht.access to .htaccess?