Help!  Suddenly the navigation in all of my EE sites doesn’t work!
Posted: 17 May 2008 03:19 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  119
Joined  09-14-2006

The navigation in all of my EE sites just stopped working today!  Check it out:
http://www.northwestdivision.com

When you click a link, the URL changes, but it continues to display the Home page.  This is the case for all of my EE-powered sites.  I’m using the most recent build:

ExpressionEngine 1.6.3
Build:  20080319

I’ve spoken to my host (HostGator) and they assure me that they haven’t changed anything in the backend that may have caused this.  They thought that the server being migrated to PHP5 may have caused it, but my server hasn’t been migrated yet.

The only thing that I’ve been doing differently lately is toying with Plogger Photo Gallery, but I’ve had that working alongside my sites for a few days now.  This problem only started today.

Has anyone experienced this?  I’m getting nervous!
Thanks for any help.

EDIT:
I just realized that if I add “index.php” back into the URL, the correct page displays.  I had been using the “File and Directory Check” Method to hide “index.php”, but it’s been working fine until now. ??

Profile
 
 
Posted: 17 May 2008 04:41 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Well, your server is reporting PHP 5.2.6 so I would guess that you just need to change your rewrite rule to this:

RewriteEngine On
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d

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

Note the question mark after index.php.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 18 May 2008 07:26 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23521
Joined  05-20-2002

It’s definitely sounding like the force query string issue- and money bet something has changed server side.  It’s not going to just break like that for no reason.

I’d probably give Drylouvr’s htaccess a shot.  If that doesn’t work- I’d remove the htaccess entirely- put back index.php, see if that works.  If it doesn’t- then I’d force query strings- and if necessary change the qtype.  Anyhoo- point is, get it working without htaccess- so that you can know exactly what settings are needed.  Once it works, you can go back and tweak around with htaccess to try and remove it again. 

Make sense?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 18 May 2008 10:56 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  119
Joined  09-14-2006
Drylouvre - 17 May 2008 04:41 PM

Well, your server is reporting PHP 5.2.6 so I would guess that you just need to change your rewrite rule to this:

RewriteEngine On
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d

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

Note the question mark after index.php.

Cheers

Dry


Ah!  That worked.  Thanks so much.
 
So that question mark is something I need to do just because of PHP5?  That should probably be added to the wiki, no?

By the way, is there a “recommended” method for removing index.php or is it just a matter of preference?

Profile
 
 
Posted: 18 May 2008 04:24 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

It’s something to do with PATH_INFO not being available and that’s why you need to make this change. I’m afraid I can’t tell you whether it’s specifically a PHP5 problem though I’ve only ever come across it when PHP5 is used.

In another thread Derek Jones mentioned that this is actually a server configuration issue so it might be worth talking to your host about why it works with PHP4 but not PHP5.

All the methods for removing index.php are unsupported officially so I don’t think there is a ‘recommended’ method. I guess it’s down to your own preference and your server setup.

Anyway, glad you got it working.

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 19 May 2008 01:55 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15346
Joined  05-15-2004

ZenBug, you’re all good?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 19 May 2008 09:55 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  119
Joined  09-14-2006

I am, thanks. 
Closer ‘er up!

Profile
 
 
Posted: 19 May 2008 10:01 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15346
Joined  05-15-2004

There you go. Come again some time smile

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

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: 64885 Total Logged-in Users: 63
Total Topics: 81811 Total Anonymous Users: 40
Total Replies: 439809 Total Guests: 308
Total Posts: 521620    
Members ( View Memberlist )
Newest Members:  kikibalkhulaidi19Hotcards.comShrike67Dynamic1justingpticketjendicottdxrsmdanbilly