We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG .htaccess generator

Development and Programming

MAYO's avatar
MAYO
53 posts
16 years ago
MAYO's avatar MAYO

Ok, so i thought id solved this, but it still isn’t working. I posted previously saying that when i ran this script, the page comes up with a 404. Now, all its doing is displaying the homepage.

http://tinyurl.com/muow2b

Thats the website. But all the links are still working with the index.php in the URL.

http://tinyurl.com/mepvys

but if you navigate to a page without the index.php….

http://tinyurl.com/mtukc8

Then it just shows up the main homepage?! i can’t figure this out. Any help would be appreciated.

This is the .htaccess file.

# -- LG .htaccess Generator Start --

# .htaccess generated by LG .htaccess Generator v1.0.0
# http://leevigraham.com/cms-customisation/expressionengine/addon/lg-htaccess-generator/

# secure .htaccess file
<Files .htaccess>
 order allow,deny
 deny from all
</Files>

# Dont list files in index pages
IndexIgnore *

# EE 404 page for missing pages
ErrorDocument 404 /index.php?/

# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp)$">
  ErrorDocument 404 "File Not Found"
</FilesMatch>

RewriteEngine On

RewriteBase /

# remove the www
RewriteCond %{HTTP_HOST} ^(www\.$) [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]

# Remove index.php
# Uses the "include method"
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(home|search|embeds|whoarewe|whatwedo|results|clients|contact|casestudies|blog|news|people|members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]

# Remove IE image toolbar
<FilesMatch "\.(html|htm|php)$">
  Header set imagetoolbar "no"
</FilesMatch>

# -- LG .htaccess Generator End --

Moved to the Extensions forum by Moderator

       
MAYO's avatar
MAYO
53 posts
16 years ago
MAYO's avatar MAYO

I found this on another forum post…

You have to open up your .htaccess file and remove the extra pipe character. In the Include method rules section is the line that has all the template groups to include. Look for a double pipe characters. Delete one, and you should be good. As far as I know, this is the only solution at the moment.

But i don’t understand it, could anyone explain?

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Mayo, we don’t provide support for third party applications. Moving to Extensions for support by the author.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.