Purchase a license: $65

Purchases made through PayPal. Full refunds available within 30 days.

EE2 + 1.7.X compatible

Questions + support for purchased licenses: support@buildwithstructure.com

Documentation

Playing Nice with LG htaccess Generator

Category: Common Issues

Find This Code


# Remove index.php
# Uses the "include method" 
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method

Replace This


RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/({ee:template_groups}|{ee:pages}|members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php?/$1 [L]

With This Code


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

Other Methods

The method htaccess uses to remove index.php sometimes needs to be changed per the environment. THere are many other methods of index.php exlcusion in the EE Wiki in this article: Remove index.php from URLs

« All Documentation