Tags » Htaccess

Redirect index.html and index.php to the home page

How to redirect index.html and index.php to the home page. We recently did some website work for a local business. The business was using a static html website and we wanted to convert the site to a WordPress based platform for multiple reasons. 377 more words


Redirect http to https

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


Uploading huge files using .htaccess with PHP

Just append following lines in .htaccess file

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200



Apache Performance: Disable .htaccess

Well for two reasons really, performance and security. For the scope of this article we will focus on the unnecessary performance overhead of using .htaccess. Now this is not something new or some hidden tweak but it’s  805 more words


Bad Bot - htaccess

RewriteEngine On

# Block Bad Bots & Scrapers

RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule .* – [F]

SetEnvIfNoCase User-Agent ^$ bad_bot #this is for blank user-agents… 1,220 more words


Laravel remove /public from url

1. Create a .htaccess file at the root of the Laravel Project.

2. Add the code shown below to the file.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)$ public/$1 [L]
… 8 more words


.htaccess , Hypertext Access and setting changes on the web space used by most web server Apache is primarily for making files.
.htaccess in the activation of the configure your server’s httpd.conf file must be active in the following code block.
loadmodule rewrite_module modules…