We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30086
    • 110 Posts
    @sottwell: hi again, I’m not really sure what or how to do this. Could you please help me?

    Thanks
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Here’s my full .htaccess file.
      # Use PHP5CGI as default
      AddHandler fcgid-script .php
      
      # block access to any config.inc.php file especially for backup script
      <Files config.inc.php>
      order deny,allow
      deny from all
      </Files>
      
      RewriteEngine On
      RewriteBase /
      
      # rewrite a parked domain to sottwell.com
      RewriteCond %{HTTP_HOST} ^jewishyou.com$ [OR]
      RewriteCond %{HTTP_HOST} ^www.jewishyou.com$
      RewriteRule ^/?$ "http\:\/\/sottwell\.com" [R=301,L]
      
      # rewrite www.domain.com to domain.com
      RewriteCond %{HTTP_HOST} ^www.sottwell.com$
      RewriteRule ^/?$ "http\:\/\/sottwell\.com" [R=301,L]
      
      # Fix Apache internal dummy connections from breaking [(site_url)] cache
      RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
      RewriteRule .* - [F,L]
      
      # Exclude /assets and /manager directories and images from rewrite rules
      #RewriteRule ^(manager|assets)/*$ - [L]
      RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
      
      # For Friendly URLs
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
      
      #redirect attempts to access my site's webloginpe documentation
      redirect 301 /assets/snippets/webloginpe/docs/index.html http://wiki.modxcms.com/index.php/WebLoginPE_Examples 
       
      
      
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org