Welcome To Snipplr


Everyone's Recent Apache Snippets



« Prev 1 2 3 4 5 ... 9
  1. FAV

    How to set the PHP maximum execution time and script memory limit in an .htaccess file

    How to set the PHP maximum execution time and script memory limit in an .htaccess file
    Apache 156 views posted 4 months ago by cerxx
  2. FAV

    Redirect HTTP to HTTPS in Apache

    Redirect HTTP to HTTPS in Apache
    Apache 154 views posted 5 months ago by cerxx
  3. FAV

    Redirect subdomains to a folder on the main domain

    There is a domain: domain.ru There are subdomains subdomain.domain.ru and forum.domain.ru domain.ru is configured as a host and is located in the folder ... / www / domain / Subdomains are aliases of the main domain - i.e. lead to the same folder...
    Apache 8 views posted 1 year ago by cerxx
  4. FAV

    Htaccess rewrite file for Letsencrypt and CakePHP app

    This .htaccess actually forces all traffic to https, and allows cakephp app to work properly, as well as letsencrypt to go thru
    Apache 17 views posted 2 years ago by acosonic
  5. FAV

    Removing extensions and trailing slashes in web urls:

    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...
    Apache 21 views posted 4 years ago by jefferis
  6. FAV

    Force Rewrite for https and .html to .php in htaccess

    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.
    Apache 17 views posted 4 years ago by jefferis
  7. FAV

    Wordpress: Robots.txt tricks

    Sometimes you don't want robots snooping around certain files. Here's one example of a custom configuration.
    Apache 16 views posted 5 years ago by chrisaiv
  8. FAV

    Wordpress: .htaccess performance tricks

    These are performance tricks to improve your Wordpress application.
    Apache 13 views posted 5 years ago by chrisaiv
  9. FAV

    Redirect all users to access the site WITHOUT the \'www.\' prefix

    Redirect all users to access the site WITHOUT the 'www.' prefix
    Apache 11 views posted 6 years ago by graceman9
  10. FAV

    yii hide index.php

    Hiding index.php from url
    Apache 13 views posted 6 years ago by codesnip
  11. FAV

    Fix 403 Forbidden wampserver tools (PHPmyadmin, sqlbuddy etc) on Windows 8

    To fix the issue with localhost under Windows 8 giving a 403 error (but working for 127.0.0.1) I did the following:
    Apache 12 views posted 7 years ago by rickygri
  12. FAV

    https transparent proxy

    The idea is to use this piece of code inside a virtualhost block
    Apache 16 views posted 7 years ago by therobot
  13. FAV

    domain.com->www.domain.com Apache Redirect

    This redirect is domain independent.
    Apache 9 views posted 7 years ago by abwaters
  14. FAV

    .htaccess for wordpress network @wpengine - adds trailing slash to 404 pages

    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...
    Apache 18 views posted 7 years ago by lucasoptura
  15. FAV

    Remove /index.php

    Removing index.php to url. e.g. www.yourwebsite.com/index.php -> www.yourwebsite.com/
    Apache 10 views posted 7 years ago by zwebapp
  16. FAV

    Remove .php from URL

    .htaccess
    Apache 23 views posted 7 years ago by wiryanm
  17. FAV

    .htaccess script to block remote access and allow local ip

    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...
    Apache 20 views posted 7 years ago by aruldave
  18. FAV

    Remove trailing slashes in htaccess

    How to remove trailing slashes in URL's using .htaccess.
    Apache 10 views posted 7 years ago by palimadra
  19. FAV

    Prevent Image Hotlinking

    stop bandwidth theft!
    Apache saved by 4 people 17 views posted 8 years ago by ederfortunatO
  20. FAV

    Force www with htaccess

    Domain ambiguous way of forcing www with htaccess
    Apache 16 views posted 8 years ago by klovera
  21. FAV

    301er Weiterleitung

    Eine komplette Website mit Linkstruktur auf eine neue Domain weiterleiten
    Apache 9 views posted 8 years ago by Perun
  22. FAV

    .htaccess php handler mod_rewrite

    This is an .htaccess file for a mod_rewrite php url handler.
    Apache 19 views posted 8 years ago by ghost2109
  23. FAV

    htaccess snippets

    .htaccess snippets to optimize your website in many ways: Redirections, performances, ease of use
    Apache saved by 2 people 26 views posted 8 years ago by macodev
  24. FAV

    Reduce spam on your WordPress blog by using .htaccess

    Reduce spam on WP installations (comment spam); this snippet does not look for https referers.
    Apache 30 views posted 8 years ago by no4h
  25. FAV

    How to: Protect your WordPress blog from hotlinking

    FWIW
    Apache 16 views posted 8 years ago by no4h
  26. FAV

    Host additional domain in subdirectory

    Rewrites url to appear like the additional domain appears independently hosted, however, only appropriate for a temporary web page as other pages throw an error.
    Apache 9 views posted 8 years ago by hotdiggity
  27. FAV

    Stop directory index browsing

    This snippet will stop people from snooping in your Apache directories. This is useful if you have directories containing files, but no index HTML/PHP document.
    Apache saved by 4 people 11 views posted 8 years ago by f6design
  28. FAV

    htaccess site caching

    Apache saved by 4 people 11 views posted 8 years ago by czachor
  29. FAV

    Performance-wise .htaccess

    Apache 12 views posted 8 years ago by pentago
  30. FAV

    HTACCESS - Redirect & strip all query strings

    Apache 13 views posted 8 years ago by batfan
« Prev 1 2 3 4 5 ... 9