Remove Index.php via “Include Method” Not Working
Posted: 17 April 2007 03:17 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  716
Joined  05-14-2004

I’ve read all the Wiki articles on removing the index.php and the template name from the URL.  I followed all the instructions and love the ease of the “File and Directory Check” Method—that one seems to work just great!  But, my concern lies with the lack of 404 action.  My client is really adamant about SEO and her links, so I want to make sure that her 404’s show up.

Per this Wiki entry:

Important note for SEO:  This method will serve all ExpressionEngine pages with a code 200 - which means that Error Code 404 - Not Found will never be delivered, even if EE is set to use it.  The other methods may be more SEO friendly, though fiddler to work with.

I tried using the Include method as it seems like the simplest solution.  But either I’m not doing it right or there’s an issue somewhere. I’m leaning more toward the former. lol.

This is according to the Wiki entry:

RewriteEngine on
RewriteCond
$1 ^(weblog|member|search|TemplateGroup_4_Name|TemplateGroup_5_Name|P[0-9]{2,8}) [NC]
RewriteRule
^(.*)$ /index.php/$1 [L]

This is what I’ve got:

RewriteEngine on
RewriteCond
$1 ^(weblog|member|search|site|P[0-9]{2,8}) [NC]
RewriteRule
^(.*)$ /index.php?/$1 [L]

Do you have any recommendations or thoughts on this?  What am I missing?  tongue laugh

 Signature 

Moxie Design Studios™ • Top Shelf Blog & Website Design by The Moxie Girls™
EE ProNetwork • (EE 1.6.5, build 20081024)

Profile
 
 
Posted: 17 April 2007 04:55 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6729
Joined  03-23-2006

Hi Joelle.

That’s odd indeed.  I took your exact posted htaccess file and it ran for me.  Perhaps we should give the “exclude” method a shot?  Truthfully, I can’t see how any one would work if the others didn’t - and obviously the file and dir check worked for you.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 18 April 2007 12:22 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  716
Joined  05-14-2004

Thanks, Derek!

I think either I had some kind of typo or it got fixed after I took care of this.  I think it was conflicting, but once I put the turned that off, it worked great.

Thanks for looking at it. smile

 Signature 

Moxie Design Studios™ • Top Shelf Blog & Website Design by The Moxie Girls™
EE ProNetwork • (EE 1.6.5, build 20081024)

Profile
 
 
Posted: 18 April 2007 02:26 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6729
Joined  03-23-2006

My pleasure, glad you got it one way or the other!

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64939 Total Logged-in Users: 65
Total Topics: 81911 Total Anonymous Users: 51
Total Replies: 440325 Total Guests: 280
Total Posts: 522236    
Members ( View Memberlist )