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 144 posted 4 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 166 posted 4 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 153 posted 7 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 140 posted 8 years ago by aruldave
This is an .htaccess file for a mod_rewrite php url handler.
0 97 posted 8 years ago by ghost2109
Useful for WordPress installations that need more than 32M of memory
0 102 posted 8 years ago by Huskie
Add these lines to your .htaccess file to increase PHPs file upload size limit to 20Mb
0 104 posted 9 years ago by shodan_uk
1 73 posted 9 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 58 posted 9 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 88 posted 9 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 54 posted 10 years ago by occam
Great way to use mod_rewrite with friendly URLs and Form
1 69 posted 11 years ago by luizlopes
10 590 posted 12 years ago by koorb
0 59 posted 12 years ago by wbowers
Add this to your .htaccess file in Apache:
7 110 posted 12 years ago by Abe
« Prev 1 Next »