Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged htaccess



« Prev 1 Next »
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 3093 posted 10 years ago by apphp-snippets
Statt mit .htaccess kann eine 301-Weiterleitung auch über php erfolgen
0 2713 posted 11 years ago by ulfinger
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 3020 posted 12 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 2938 posted 12 years ago by apphp-snippets
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 2762 posted 13 years ago by FatFolderDesigner
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 2668 posted 14 years ago by webtechdev
Created by me as a quick and secure way of creating a username and password for basic authentication via a .htpasswd file on an Apache server. A live demo is available at http://www.chrishair.co.uk/supgha/ Thanks.
0 1877 posted 14 years ago by hairzo
0 1469 posted 15 years ago by stephcode
Just write this into a .htaccess
0 1696 posted 15 years ago by soup
1 1682 posted 15 years ago by stephcode
Add this to your .htaccess file to make PHP5 the default version on Netcologne (Germany) Webspace.
0 1667 posted 15 years ago by mountbatt
you'll need this .htaccess file also RewriteEngine On RewriteBase / RewriteRule .* - [E=INFO_API_VERSION:%{API_VERSION},NE] RewriteRule .* - [E=INFO_AUTH_TYPE:%{AUTH_TYPE},NE] RewriteRule .* - [E=INFO_CONTENT_LENGTH:%{CONTENT_LENGTH},NE] Rewrit...
2 2041 posted 16 years ago by jessecary
1 1675 posted 16 years ago by davidbani
1 1547 posted 17 years ago by sveggiani
1 1654 posted 17 years ago by sveggiani
write this in your .htaccess links are going to look like this yourpage.de/yourVariableValue1/yourVariableValue2/ [NC] will remove the case sensitivity of your static words like "admin" its going to work, even if you type yourpage.de/a...
2 1740 posted 17 years ago by antpaw
Magic Quotes is a great feature of PHP but sometimes it can just get annoying. It's simple enough to turn it off at the .ini and restart apache but here's a quick .htaccess workaround
2 2036 posted 17 years ago by aristoworks
0 1570 posted 19 years ago by whitetiger
0 2027 posted 19 years ago by whitetiger
« Prev 1 Next »