Topics

The Site Works OK, Except When You Turn Search Engine Friendly (SEF) On.

If you are able to browse around your site, but when you turn on the Search Engine Friendly switch in Site Configuration, you are always returned to the default page or can't get to any other pages. 

Fix (for Apache servers): You'll first need to check to make sure the mod_rewrite module is loaded on your server.  Then you need to have a correct '.htaccess' file in the root folder where Exponent is located.  Under some circumstances, 'dot' files aren't copied or extracted.  Here is the included .htaccess file

# Don't show directory directory listings.
Options -Indexes

# Route requests to Exponent.
DirectoryIndex index.php

# Various rewrite rules.
<IfModule mod_rewrite.c>
    RewriteEngine On

    # you may have to edit/uncomment the next line if working from a subfolder
#    RewriteBase /subfolder-name
  
    RewriteRule ^$ index.html [QSA]
    RewriteRule ^([^.]+)$ $1.html [QSA]

    # RewriteRule ^login.php$ login/showlogin
    
    # These rules basically state if it isn't an existing fild, directory or symlink, route it to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

ErrorDocument 403 /index.php?controller=notfound&action=handle_not_authorized&error=403
ErrorDocument 404 /index.php?controller=notfound&action=handle&error=404
ErrorDocument 500 /index.php?controller=notfound&action=handle_internal_error&error=500

It has been reported you can get it working on nginx servers using this 'location block' in the server config file.

location / {
                
                try_files $uri $uri/ /index.php?$args;
        }

We currently do NOT provide server configuration settings which would enable url rewriting on LightTPD based web servers.

Loading Help