Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged htaccess
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« 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
1035
posted 8 years ago by apphp-snippets
Statt mit .htaccess kann eine 301-Weiterleitung auch über php erfolgen
0
976
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
1003
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
975
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
938
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
833
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
933
posted 13 years ago by hairzo
Add this to your .htaccess file to make PHP5 the default version on Netcologne (Germany) Webspace.
0
905
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
970
posted 14 years ago by jessecary
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
1028
posted 16 years ago by aristoworks
« Prev 1 Next »