{"id":426,"date":"2010-11-12T11:22:55","date_gmt":"2010-11-12T15:22:55","guid":{"rendered":"http:\/\/www.eyoungwon.com\/journal\/?p=426"},"modified":"2010-11-12T11:22:55","modified_gmt":"2010-11-12T15:22:55","slug":"htaccess-file-modx-friendly-urls","status":"publish","type":"post","link":"https:\/\/eyoungwon.com\/journal\/htaccess-file-modx-friendly-urls\/","title":{"rendered":".htaccess  File &#8211; Modx friendly URLs"},"content":{"rendered":"<ol>\n<li><code># Vital components of your .htaccess file<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<\/code><\/p>\n<p># Force \u201cwww.yourdomain.com\u201d instead of just \u201cyourdomain.com\u201d<br \/>\nRewriteCond %{HTTP_HOST} .<br \/>\nRewriteCond %{HTTP_HOST} !^www\\.yourdomain\\.com [NC]<br \/>\nRewriteRule (.*) http:\/\/www.yourdomain.com\/$1 [R=301,L]<\/p>\n<p># The Friendly URLs part<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule ^(.*)$ index.php?q=$1 [L,QSA]<\/li>\n<li>Make sure your site is still working\u2026 you can still use the same un-friendly URLs after making these edits; you just want to make sure you didn\u2019t misspell something in your .htaccess file and cause it to parse incorrectly.<\/li>\n<li>Login to the MODx manager (www.yoursite.com\/manager) and go to<strong>Tools?Configuration?Friendly URLs<\/strong> and change the following settings:<br \/>\n* Use friendly URLs: YES<br \/>\n* Use friendly aliases: YES<br \/>\n* Use friendly alias path: YES<\/li>\n<\/ol>\n<p>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Vital components of your .htaccess file RewriteEngine On RewriteBase \/ # Force \u201cwww.yourdomain.com\u201d instead of just \u201cyourdomain.com\u201d 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\u2026 you can still use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,114,135],"tags":[136,198],"class_list":["post-426","post","type-post","status-publish","format-standard","hentry","category-cms","category-linuxunix","category-modx","tag-htaccess","tag-urls-modx"],"_links":{"self":[{"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/posts\/426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/comments?post=426"}],"version-history":[{"count":2,"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/posts\/426\/revisions"}],"predecessor-version":[{"id":428,"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/posts\/426\/revisions\/428"}],"wp:attachment":[{"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/media?parent=426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/categories?post=426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eyoungwon.com\/journal\/wp-json\/wp\/v2\/tags?post=426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}