Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Wed Jan 25, 2006 3:51 pm Post subject: Error when using Google Tap mod_rewrite with phpnuke sites |
|
|
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? ) |
|