Welcome To Snipplr


Everyone's Recent Snippets Tagged htaccess



« Prev 1 2 3 4 5 ... 9
How to set the PHP maximum execution time and script memory limit in an .htaccess file
0 18609 posted 5 years ago by cerxx
Redirect HTTP to HTTPS in Apache
0 10003 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 3239 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 3689 posted 7 years ago by acosonic
This example shows you how to restrict to a specific file or multiple files. Add the following code block and edit the file name/s according to yuor needs.
0 3429 posted 7 years ago by apphp-snippets
This example shows you how to force www. or no-www. using .htaccess file.
0 3322 posted 7 years ago by apphp-snippets
This example shows you how to create redirection o another directory. It may be useful, for example, when you have a project, placed in sub-directory.
0 2264 posted 9 years ago by apphp-snippets
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 3617 posted 9 years ago by jefferis
Statt mit .htaccess kann eine 301-Weiterleitung auch über php erfolgen
0 2061 posted 10 years ago by ulfinger
https://www.chrisjmendez.com/2014/09/14/wordpress-htaccess-performance-tricks/
0 3268 posted 11 years ago by chrisaiv
This example shows you how to log errors to a file, and prevent showing them to the user. Make sure that the file exists and you're able to write to it.
0 2240 posted 11 years ago by apphp-snippets
This example shows you how to remove file extension from URLs using .htaccess file directives. Remember, that "mod_rewrite" works only on Apache server. Before trying please be sure that you are working on Apache server and the "mod_rewrite" module/e...
0 2203 posted 11 years ago by apphp-snippets
We know that normally index.html or index.php is the default page for many servers, when visitor types a directory without specifying a file name. You can change this rule with .htaccess:
0 2184 posted 11 years ago by apphp-snippets
Redirect all users to access the site WITHOUT the 'www.' prefix
0 1522 posted 11 years ago by graceman9
Several tricks for your .htaccess file.
0 3056 posted 12 years ago by telltec
Try to run Codeigniter in a subfolder of a Wordpress installation and want to remove index.php for clean URLs? Put this code in a .htaccess file in your codeigniter directory ("cidir" in this example).
0 4485 posted 12 years ago by telltec
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 1648 posted 12 years ago by lucasoptura
Removing index.php to url. e.g. www.yourwebsite.com/index.php -> www.yourwebsite.com/
0 2882 posted 13 years ago by zwebapp
These two snippets together, the first in the .htaccess file, and the second in your PHP create an elegantly simple solution to arbitrary URLs with php. For a breakdown and example check out the link. Don't want to follow the link, how about the q...
0 2013 posted 13 years ago by FatFolderDesigner
.htaccess
0 3213 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 3621 posted 13 years ago by aruldave
How to remove trailing slashes in URL's using .htaccess.
0 3106 posted 13 years ago by palimadra
stop bandwidth theft!
1 3092 posted 13 years ago by ederfortunatO
Domain ambiguous way of forcing www with htaccess
0 3219 posted 13 years ago by klovera
Eine komplette Website mit Linkstruktur auf eine neue Domain weiterleiten
0 3046 posted 13 years ago by Perun
Do not allow public to see your dir structure just pleae this code in .htacces Futther reading There are two ways to approach this. The best way to do this is via your .htaccess or httpd.conf file (if you have your own Apache server). If your h...
0 1946 posted 13 years ago by webtechdev
This is an .htaccess file for a mod_rewrite php url handler.
0 3088 posted 13 years ago by ghost2109
.htaccess snippets to optimize your website in many ways: Redirections, performances, ease of use
2 3149 posted 13 years ago by macodev
Reduce spam on WP installations (comment spam); this snippet does not look for https referers.
0 3332 posted 13 years ago by no4h
« Prev 1 2 3 4 5 ... 9