I have a .htaccess in a root directory which is currently password protected to a single file name. Later on i have created a sub-directory, needs to disable the password protection for a same file name which was protected in a root directory. How to solve above issue? I tired different ideas by changing AuthType, AllowOverride All [...]
Archive for the ‘Htaccess’ Category
External Redirect .php files to .html files (SEO friendly)
Most of the developers like to show PHP files as HTML. This can be done via htaccess. .htaccess files (or “distributed configuration files”) provide a way to make configuration changes on a per-directory basis. In htaccess, we have Rewrites. Htaccess Rewrites are enabled by using the Apache module mod_rewrite, which is one of the most [...]
5 htaccess Tricks Every Webmaster Should Know
Here are 5 sets of htaccess directives every webmaster should know: Redirect Visitors While You Update Your Site Update and test your site while visitors are redirected to the page of your choice: order deny,allow deny from all allow from 123.123.123.123 ErrorDocument 403 /page.html <Files page.html> allow from all </Files> order deny,allow deny from all [...]
Useful URL rewriting examples using .htaccess
If you are looking for the examples of URL rewriting then this post might be useful for you. In this post, I’ve given five useful examples of URL rewriting using .htacess. Now let’s look at the examples 1)Rewriting product.php?id=12 to product-12.html It is a simple redirection in which .php extension is hidden from the browser’s [...]



Posted in
Tags: