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
    
    # To redirect all users to access the site WITH the 'www.' prefix,
    # (http://example.com/... will be redirected to http://www.example.com/...)
    # adapt and uncomment the following:
    # RewriteCond %{HTTP_HOST} ^example.com$ [NC]
    # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
    #
    # To redirect all users to access the site WITHOUT the 'www.' prefix,
    # (http://www.example.com/... will be redirected to http://example.com/...)
    # uncomment and adapt the following:
    # RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
    # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] 
  
    RewriteRule ^$ index.html [QSA]
    RewriteRule ^([^.]+)$ $1.html [QSA]

    # Kludge out certain file types that we don't want to try to route thru the eXp router.
    RewriteCond $1 !^(.*.css|.*.js|.*.png|.*.pdf|.*favicon.ico|robots.txt|.*.shtml|.*.htc) [NC]

    # Kludge out image files that we don't want to try to route thru the eXp router.
    RewriteCond $1 !^(.*.jpg|.*.gif|.*.png|.*.jpeg|.*.tiff|.*.bmp) [NC]
    
    # These rules 
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

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

Loading Help