We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    is the setting being saved?

    for not newly build/old sites you might want to let google know the pages still exsist only the .html is removed so you won't loose the history/ranking by adding htaccess stuff: (redirect)

    Options +FollowSymLinks -MultiViews
    DirectorySlash Off
    
    RewriteCond %{SCRIPT_FILENAME}/ -d
    RewriteCond %{SCRIPT_FILENAME}.html !-f
    RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
    
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^(.+)\.html$ /$1 [R=301,L]
    
    RewriteCond %{SCRIPT_FILENAME}.html -f
    RewriteRule [^/]$ %{REQUEST_URI}.html [QSA,L]



      Evolution user, I like the back-end speed and simplicity smiley
      • 22448
      • 241 Posts
      Quote from: sottwell at Aug 11, 2014, 09:04 AM
      I have no problem, emptied the field in the Content Types grid and cleared the cache. Do you have some kind of caching or SEO URLs plugins installed?

      Hi Susan,
      i've disabled all of the caching settings (although MODx is still caching, but that's another issue). No SEO/URL plugins are installed. Not sure if this is related but when i do Manage - Clear Cache the popup opens and says "Console running" but it never finishes and OK button remains disabled. I have to close the pop-up with the x in the top right corner.
      But to make sure that everything is cleared i load a page with CacheClear snippet. But the problem persists.


        • 22448
        • 241 Posts
        Quote from: fourroses666 at Aug 11, 2014, 10:24 AM
        is the setting being saved?

        for not newly build/old sites you might want to let google know the pages still exsist only the .html is removed so you won't loose the history/ranking by adding htaccess stuff: (redirect)

        thanks but this is a new site still in development so no legacy redirects are necessery.
        I wonder if this is a 2.3.1 specific issue.
          • 22448
          • 241 Posts
          Did one more test. Changed the extension for html type to .htm. Saved and cleared cache. page.htm returns page not found, but page.html still works. So it appears that changing file extension in the Conten - Content Types does not affect actual MODx behavior. [ed. note: outre99 last edited this post 12 years, 1 month ago.]
            • 9995
            • 1,613 Posts
            Did you try manually clearing cache with FTP?
            Or cleared cache multiple times in manager which eventually might clear it?
            Maybe you can test with an other browser also.
              Evolution user, I like the back-end speed and simplicity smiley
              • 22448
              • 241 Posts
              The site is on the local box.
              Here's what i tried. Clearing core/cache manually. Loading a page with ClearCache snippet on it, which clears all cache.
              Tried Firefox and Chromium (I'm on Ubuntu 14.04)

              same result: "page.html" loads but "page" results in MODx page not found.
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                What does your .htaccess file look like?
                  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
                  • 22448
                  • 241 Posts
                  standard that came with modx, which i installed from Git.
                  My dev box is ubuntu 14.04, Apache 2.4.7, MySQL 5.5.38, PHP 5.5.9 runnig as FPM.
                  Virtual host webroot is in the projects folder with each project in a separate subfolder.
                  I'm still developing the site so no url optimizations or routing of any kind has been done.
                  I wonder if it has to do with the fact that the Manage - Clear Cache never completes running and doesn't show any results. The fact that changing html content type extension from .html to .htm did not work either even though the database value was changed makes me think that it's a bug.

                  # 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]
                  
                  RewriteEngine On
                  RewriteBase /mg3/
                  
                  
                  
                  # 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/$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 .htc files are served with the proper MIME type, which is critical
                  # for XP SP2. Un-comment if your host allows htaccess MIME type overrides.
                  
                  #AddType text/x-component .htc
                  
                  
                  
                  # If your server is not already configured as such, the following directive
                  # should be uncommented in order to set PHP's register_globals option to OFF.
                  # This closes a major security hole that is abused by most XSS (cross-site
                  # scripting) attacks. For more information: http://php.net/register_globals
                  #
                  # To verify that this option has been set to OFF, open the Manager and choose
                  # Reports -> System Info and then click the phpinfo() link. Do a Find on Page
                  # for "register_globals". The Local Value should be OFF. If the Master Value
                  # is OFF then you do not need this directive here.
                  #
                  # IF REGISTER_GLOBALS DIRECTIVE CAUSES 500 INTERNAL SERVER ERRORS :
                  #
                  # Your server does not allow PHP directives to be set via .htaccess. In that
                  # case you must make this change in your php.ini file instead. If you are
                  # using a commercial web host, contact the administrators for assistance in
                  # doing this. Not all servers allow local php.ini files, and they should
                  # include all PHP configurations (not just this one), or you will effectively
                  # reset everything to PHP defaults. Consult www.php.net for more detailed
                  # information about setting PHP directives.
                  
                  #php_flag register_globals Off
                  
                  
                  
                  # For servers that support output compression, you should pick up a bit of
                  # speed by un-commenting the following lines.
                  
                  #php_flag zlib.output_compression On
                  #php_value zlib.output_compression_level 5
                  
                  
                  
                  # The following directives stop screen flicker in IE on CSS rollovers. If
                  # needed, un-comment the following rules. When they're in place, you may have
                  # to do a force-refresh in order to see changes in your designs.
                  
                  #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
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Ok. Was just a thought.
                      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