13:59 Mon Sep  3, 2007
Cheap Hummer!

12:18 Tue Jul  4, 2006
Hummer Camp After

12:15 Tue Jul  4, 2006
Hummer Camp

Help Me Humpa
PHP and MMS Server Help
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Error when using Google Tap mod_rewrite with phpnuke sites

 
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP
View previous topic :: View next topic  
Author Message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Jan 25, 2006 3:51 pm    Post subject: Error when using Google Tap mod_rewrite with phpnuke sites Reply with quote

It seems that every phpnuke site using the Google Tap and the associated mod_rewrites in their .htaccess file is subject to the following problem.

If someone goes to www.any-phpnuke-site.com/index.php/anything they will get the index.php page with missing images, style, and theme code.
This could cause high server load - the severity of which depends on some other custom phpnuke modifications/add-ons that might be used.

This happens to any phpnuke site using Google Tap - try it and you'll see.

The good news is that the fix is simple!

Edit your .htaccess file.
Just add a new line after the RewriteEngine on line, like this:
Code:
RewriteEngine on
RewriteRule ^(.*)index\.php/(.*) /index_error.html  [L]

That's it.
You can create an index_error.html if you want, or not and let it simply go to your default 404 Page Not Found error page.
You can also edit that RewriteRule and have it go somewhere else, other than /index_error.html.
But I suggest copying this one line, and pasting it in your .htaccess file first. Just to see that it works for you.
Code:
RewriteRule ^(.*)index\.php/(.*) /index_error.html  [L]

... paste it in after the Rewrite Engine on line (did I say that already? Very Happy )
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum