Welcome To Snipplr


Everyone's Recent Apache Snippets Tagged php



« Prev 1 Next »
Removing extensions and trailing slashes in web urls: "If you want to remove the .html extension from a html file for example yoursite.com/wallpaper.html to yoursite.com/wallpaper you simply have to alter the last line from the code above to match...
0 860 posted 8 years ago by jefferis
This rewrite will not work on WordPress. It forces .htm and .html files that no longer exist to go to the new .php versions of the pages.
0 1105 posted 8 years ago by jefferis
In my WP networks, I use a custom 404 page and plugin to answer calls asking for user information from a custom api. The API requires a URL format like this: domain.com/username/ However, users don't ever type a trailing slash, nor should they, so...
0 1005 posted 11 years ago by lucasoptura
The below code lets you stop access from the remote IPs excluding your local machine IP. This code can be setup where someone wants to provide an internal access and restricting the external access for the web service. - [Automated Predictive Dial...
0 1079 posted 11 years ago by aruldave
This is an .htaccess file for a mod_rewrite php url handler.
0 771 posted 12 years ago by ghost2109
Useful for WordPress installations that need more than 32M of memory
0 794 posted 12 years ago by Huskie
Add these lines to your .htaccess file to increase PHPs file upload size limit to 20Mb
0 804 posted 12 years ago by shodan_uk
1 561 posted 13 years ago by neoandroid
The problem As a WordPress user, you probably know how important the wp-config.php file is. This file contains all of the information required to access your precious database: username, password, server name and so on. Protecting the wp-config.php...
0 587 posted 13 years ago by josephknight
The problem Protecting dynamic websites is especially important. Most developers always protect their GET and POST requests, but sometimes this is not enough. We should also protect our blog against script injections and any attempt to modify the PH...
3 734 posted 13 years ago by josephknight
In addition to the recommendations on the Wordpress Website. Limit the amount of PHP files that a writable by Apache. The directory's and files that need to be writable, do not always need to be executed by PHP directly. This makes it a bit har...
1 530 posted 14 years ago by occam
Great way to use mod_rewrite with friendly URLs and Form
1 595 posted 15 years ago by luizlopes
« Prev 1 Next »