.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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -