Url Redirect

if user hits


url, then i should be redirected to


how can i achieve this kind of redirect based on URL

You could add the check in your htaccess file.


#Redirect index.html to a specific subfolder:

# This allows you to redirect index.html to a specific subfolder

Redirect /index.html http://example.com/newdirectory/

I however don’t think this will work in a localhost environment, but you can try.