ee-garage.com

Before posting a ticket

Before posting a ticket please read the common issues below.

Common Issues

"The .htaccess path setting is a string." error after upgrading to 1.1.0

v1.1.0 introduced multi-path support which means paths are stored as an array. If you're setting your .htaccess generator file paths in the config (or config_bootstrap.php) change the string value to an array like so:

'nsm_htaccess_generator_path' => array(NSM_BASEPATH . "/content/.htaccess")

If you have no idea what the line above means the extension settings could be corrupt. Delete the nsm_htaccess_generator row from the exp_nsm_addon_settings database table.

index.php in URLS

When you use {path} variables ExpressionEngine includes the file set as the "Main Site File" which is index.php by default. To remove index.php from your ExpressionEngine urls remove it from Admin > System Preferences > General Configuration in your CP configuration.

If your "Main Site File" is blank and urls still redirect to an index.php version check that the final RewriteRule doesn't contain R=301.

RewriteRule (.*) /index.php/?$1 [L,R=301]

should be:

RewriteRule (.*) /index.php/?$1 [L]

Internal server error (500)

Internal server errors are caused by syntax errors in your .htaccess. To debug start by commenting out all the .htacces rules and adding them back in one by one.

The most common syntax error is caused by double pipes || in the include rule. This is generally caused when the {ee:pages} tag is included in the .htacess template but the Pages module is not installed or contains no pages.

Subfolders

If your site is in a sub-folder of the domain you have to slightly tweak the last ruleset adding the sub folders.

Original (in the root of the domain)

# Remove index.php
# Uses the "include method"
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method
RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/({ee:template_groups}{ee:pages}members|P[0-9]{2,8}) [NC]
RewriteRule (.*) /index.php/?$1 [L]

Sub-folder (http://mysite.com/eecms/)

# Remove index.php
# Uses the "include method"
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method
RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/eecms/({ee:template_groups}{ee:pages}members|P[0-9]{2,8}) [NC]
RewriteRule (.*) /eecms/index.php/?$1 [L]

Support limitations

We'll always support the addon and fix any PHP bugs in the code. We'll also try and help you debug your .htaccess rules however if you have a custom server configuration there will be a point we can't help anymore. Not becuase of time but due to expertise.

Submit a support ticket

Please login before posting a new ticket.

Enter your username and password

* is required
* is required

Forgot your password?

-or- Create a new account

Releases RSS Feed © Copyright 2017 | Policies All prices shown are in Australian Dollars ($AUD) Newism