# Friendly URLs Part
RewriteEngine On
RewriteBase /modx
RewriteCond %{HTTP_HOST} .
# Force all pages to go to www.antsinmyspacebar.com/ for SEO
RewriteCond %{HTTP_HOST} !^www\.antsinmyspacebar\.com [NC]
RewriteRule (.*) http://www.antsinmyspacebar.com/.$1 [R=301,L]
# Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /modx/index.php?q=$1 [L,QSA]
# Additional Settings Follow
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIf brokenvary 1 force-no-vary!brokenvaryRewriteRule ^(.*)$ /modx/index.php?q=$1 [L,QSA]
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Force all pages to go to www.antsinmyspacebar.com/ for SEO
RewriteCond %{HTTP_HOST} !^www\.antsinmyspacebar\.com [NC]
RewriteRule (.*) http://www.antsinmyspacebar.com/.$1 [R=301,L]RewriteEngine On
RewriteBase /modx
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]
#RewriteRule (.*) http://example-domain-please-change.com/$1 [R=301,L]
#
# or for the opposite domain.com -> www.domain.com use the following
# DO NOT USE BOTH
#
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www\.example-domain-please-change\.com [NC]
#RewriteRule (.*) http://www.example-domain-please-change.com/$1 [R=301,L]
# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
# https://www.domain.com when your cert only allows https://secure.domain.com
#RewriteCond %{SERVER_PORT} !^443
#RewriteRule (.*) https://example-domain-please-change.com.com/$1 [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteRule (.*) <a href="http://www.antsinmyspacebar.com/.$1" target="_blank" rel="nofollow">http://www.antsinmyspacebar.com/.$1</a>Just look at the example inside the ht.access or above in mine and adjust your domain name.
# MODX supports Friendly URLs via this .htaccess file. You must serve web
# pages via Apache with mod_rewrite to use this functionality, and you must
# change the file name from ht.access to .htaccess.
#
# Make sure RewriteBase points to the directory where you installed MODX.
# E.g., "/modx" if your installation is in a "modx" subdirectory.
#
# You may choose to make your URLs non-case-sensitive by adding a NC directive
# to your rule: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
# Friendly URLs Part
RewriteEngine On
RewriteBase /modx
#RewriteCond %{HTTP_HOST} .
# Force all pages to go to www.antsinmyspacebar.com/ for SEO
#RewriteCond %{HTTP_HOST} !^www\.antsinmyspacebar\.com [NC]
#RewriteRule (.*) http://www.antsinmyspacebar.com/.$1 [R=301,L]
# Friendly URLs
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
