w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
.htaccess redirect domain.com/whatever to domain.com/ index.html?domain=whatever

This is pretty easy, you didn't search enough I think.

You can use this code in your DOCUMENT_ROOT/.htaccess file:

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.+) index.html?domain=$1 [L,QSA]




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.