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 437 posted 5 years ago by apphp-snippets
Statt mit .htaccess kann eine 301-Weiterleitung auch über php erfolgen
0 420 posted 7 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 405 posted 7 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 405 posted 7 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 384 posted 9 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 312 posted 9 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 378 posted 10 years ago by hairzo
0 305 posted 10 years ago by stephcode
Just write this into a .htaccess
0 363 posted 10 years ago by soup
1 425 posted 10 years ago by stephcode
Add this to your .htaccess file to make PHP5 the default version on Netcologne (Germany) Webspace.
0 395 posted 11 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 395 posted 11 years ago by jessecary
1 274 posted 11 years ago by davidbani
1 311 posted 12 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 337 posted 13 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 442 posted 13 years ago by aristoworks
You can combine them with this: http://snipplr.com/view/4848/underscore-strings/
155 4204 posted 13 years ago by Abe
0 355 posted 15 years ago by whitetiger
0 427 posted 15 years ago by whitetiger
« Prev 1 Next »