.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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

Qt4: how to send QString inside a struct via QSharedMemory -