.htaccess - Apache redirect from root -


i wondering how perform redirect root in apache.

i want check if goes root url (eg. example.com) , redirect them example.com/h automatically.

can in apache config, or in .htaccess file?

namevirtualhost *:80  <virtualhost *:80>         servername example.com         redirectmatch 301 ^/$ /h </virtualhost> 

this redirect request example.com example.com/h


Comments

Popular posts from this blog

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -