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
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?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.