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 1032 posted 8 years ago by apphp-snippets
Statt mit .htaccess kann eine 301-Weiterleitung auch über php erfolgen
0 974 posted 10 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 1001 posted 10 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 973 posted 10 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 934 posted 12 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 831 posted 12 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 931 posted 13 years ago by hairzo
0 705 posted 13 years ago by stephcode
Just write this into a .htaccess
0 820 posted 13 years ago by soup
1 927 posted 13 years ago by stephcode
Add this to your .htaccess file to make PHP5 the default version on Netcologne (Germany) Webspace.
0 904 posted 14 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 969 posted 14 years ago by jessecary
1 656 posted 14 years ago by davidbani
1 800 posted 15 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 879 posted 16 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 1026 posted 16 years ago by aristoworks
0 794 posted 18 years ago by whitetiger
0 1011 posted 18 years ago by whitetiger
« Prev 1 Next »