Welcome To Snipplr


Everyone's Recent Apache Snippets



« Prev 1 2 3 4 5 ... 9
  1. 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 6 views posted 2 years ago by acosonic
  2. 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 6 views posted 4 years ago by jefferis
  3. 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 5 views posted 4 years ago by jefferis
  4. FAV

    Wordpress: Robots.txt tricks

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

    Wordpress: .htaccess performance tricks

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

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

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

    yii hide index.php

    Hiding index.php from url
    Apache 7 views posted 6 years ago by codesnip
  8. 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 5 views posted 7 years ago by rickygri
  9. FAV

    https transparent proxy

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

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

    This redirect is domain independent.
    Apache 6 views posted 7 years ago by abwaters
  11. 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 6 views posted 7 years ago by lucasoptura
  12. FAV

    Remove /index.php

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

    Remove .php from URL

    .htaccess
    Apache 15 views posted 7 years ago by wiryanm
  14. 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 12 views posted 7 years ago by aruldave
  15. FAV

    Remove trailing slashes in htaccess

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

    Prevent Image Hotlinking

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

    Force www with htaccess

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

    301er Weiterleitung

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

    .htaccess php handler mod_rewrite

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

    htaccess snippets

    .htaccess snippets to optimize your website in many ways: Redirections, performances, ease of use
    Apache saved by 2 people 24 views posted 8 years ago by macodev
  21. 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 16 views posted 8 years ago by no4h
  22. FAV

    How to: Protect your WordPress blog from hotlinking

    FWIW
    Apache 9 views posted 8 years ago by no4h
  23. 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 7 views posted 8 years ago by hotdiggity
  24. 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 6 views posted 8 years ago by f6design
  25. FAV

    htaccess site caching

    Apache saved by 4 people 7 views posted 8 years ago by czachor
  26. FAV

    Performance-wise .htaccess

    Apache 7 views posted 8 years ago by pentago
  27. FAV

    HTACCESS - Redirect & strip all query strings

    Apache 9 views posted 8 years ago by batfan
  28. FAV

    HTACCESS - Redirect all other users to a Coming Soon page

    Replace the IP with your IP.
    Apache saved by 1 person 7 views posted 8 years ago by batfan
  29. FAV

    .htaccess Redirect ROOT to subdirectory

    I found this useful. Works as expected.
    Apache 5 views posted 8 years ago by RainyDayMedia
  30. FAV

    .htaccess add/remove www to domain redirect

    Rrewrite "www.domain.com -> domain.com" and viceversa
    Apache saved by 4 people 6 views posted 8 years ago by macodev
« Prev 1 2 3 4 5 ... 9