Welcome To Snipplr


Everyone's Recent Apache Snippets Tagged htaccess



« Prev 1 2 3 4 5 6 7
How to set the PHP maximum execution time and script memory limit in an .htaccess file
0 14572 posted 5 years ago by cerxx
Redirect HTTP to HTTPS in Apache
0 6346 posted 5 years ago by cerxx
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...
0 1380 posted 6 years ago by cerxx
This .htaccess actually forces all traffic to https, and allows cakephp app to work properly, as well as letsencrypt to go thru
0 1797 posted 7 years ago by acosonic
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 1650 posted 9 years ago by jefferis
https://www.chrisjmendez.com/2014/09/14/wordpress-htaccess-performance-tricks/
0 1339 posted 10 years ago by chrisaiv
Redirect all users to access the site WITHOUT the 'www.' prefix
0 1386 posted 11 years ago by graceman9
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 1497 posted 12 years ago by lucasoptura
Removing index.php to url. e.g. www.yourwebsite.com/index.php -> www.yourwebsite.com/
0 1046 posted 12 years ago by zwebapp
.htaccess
0 1283 posted 13 years ago by wiryanm
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 1625 posted 13 years ago by aruldave
How to remove trailing slashes in URL's using .htaccess.
0 1175 posted 13 years ago by palimadra
stop bandwidth theft!
1 1209 posted 13 years ago by ederfortunatO
Domain ambiguous way of forcing www with htaccess
0 1317 posted 13 years ago by klovera
Eine komplette Website mit Linkstruktur auf eine neue Domain weiterleiten
0 1137 posted 13 years ago by Perun
This is an .htaccess file for a mod_rewrite php url handler.
0 1217 posted 13 years ago by ghost2109
.htaccess snippets to optimize your website in many ways: Redirections, performances, ease of use
2 1255 posted 13 years ago by macodev
Reduce spam on WP installations (comment spam); this snippet does not look for https referers.
0 1390 posted 13 years ago by no4h
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.
0 1142 posted 13 years ago by hotdiggity
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.
1 1128 posted 13 years ago by f6design
1 1126 posted 13 years ago by czachor
0 1177 posted 13 years ago by pentago
Replace the IP with your IP.
1 1297 posted 13 years ago by batfan
I found this useful. Works as expected.
0 1025 posted 13 years ago by RainyDayMedia
Rrewrite "www.domain.com -> domain.com" and viceversa
1 2688 posted 13 years ago by macodev
0 1111 posted 13 years ago by justinscheetz
Redirect from the root of the site to another URL.
0 1011 posted 13 years ago by ToddSmithSalter
« Prev 1 2 3 4 5 6 7