Posts Tagged with 'htaccess php'

Beginners guide to .htaccess file with examples – Part II

I hope you have gone through the examples listed in first part of this tutorial. If not, it’s here – [Beginners guide to .htaccess file with examples]. In this part, we will cover more examples with .htaccess file. Presenting custom error pages Use .htaccess file to present users with your custom pages for 401 [Authorization Required], 403 [Forbidden], 404 [not found] and 500 [Internal Server Error]. Syntax: ErrorDocument < error-code > < location -of-custom-page> Examples: ErrorDocument 401 /401.html ErrorDocument 403

Continue Reading

Beginners Guide to .htaccess File with Examples

htaccess file allow us to make configuration changes on a per-directory basis. htaccess file works in Apache Web Server on both Linux/Unix and Windows operating system. This article has some basic .htaccess examples, such as htaccess redirect, to get you started with .htaccess right away. Just copy and paste the lines mentioned in this post below, with or without any modification, in your .htaccess file and it should work. There are several things that developers, site owners and webmasters can

Continue Reading

Categories

RSS feed