by Amit | Jan 8, 2022 | Apache mod-rewrite and htaccess related Articles
This article explains how to set a subfolder as root folder for your domain name using RewriteRule directive in an htaccess file. With an htaccess file , you can easily manage your site URLs the way you want to. You can shorten a long URL, you can completely change...
by Amit | Nov 30, 2021 | Apache mod-rewrite and htaccess related Articles
The most common use of an htaccess file is to shorten and rewrite URLs so that they can look clean and preety. Short URLs are often easy to remember and type in a web browser. So instead of typing a long URL you can just use its clean version to go to the original...
by Amit | Nov 15, 2021 | Apache mod-rewrite and htaccess related Articles
HTTP_REFERER header contains URL of the site where the visiter came from. If you came to this site from Google search the domain in the REFERER header will be google.com . REFERER header contains the full URL string excluding the fregment part which isnt sent to the...
by Amit | Nov 11, 2021 | Apache mod-rewrite and htaccess related Articles
This article explains how to set an http cookie for a specific http_host header with htaccess file using mod_rewrite. With mod_rewrite we can set cookies using [CO] flag. CO is used to set cookies in htaccess when a specific RewriteRule or the rule containing...
by Amit | Nov 9, 2021 | Apache mod-rewrite and htaccess related Articles, PHP
In PHP the default value of upload_max_filesize is 2MB and the default value for post_max_size is 8MB on the server but you can increase or decrease this size limit by modifying your php.ini or . htaccess file using post_max_size and upload_max_filesize . You can...