Profile

Achievement

first submission:submitting first snipplet

apphp-snippets's Recent SnippetsTagged htaccess



« Prev 1 Next »
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 1139 posted 7 years ago by apphp-snippets
This example shows you how to force www. or no-www. using .htaccess file.
0 1145 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 1021 posted 8 years ago by apphp-snippets
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 981 posted 10 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 990 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 959 posted 10 years ago by apphp-snippets
« Prev 1 Next »