.HTACCESS REDIRECT

  • AUTHOR: // CATEGORY: Development, Open Source

    No Comments

    So like me who doesn’t like to install in the root of a server, you may need to redirect an incoming web connection to another directory (sub) or an alternative page. It’s also cool if you want to redirect to a website under construction page etc.

    I do this with the cursed .htaccess file by adding this line

    # This allows you to redirect index.html to a specific subfolder
    Redirect /index.html http://www.abc.com

    Where abc in (http://www.abc.com) is you redirected site. You could include a subdirectlyt by adding the slashed link (http://www.abc.com/def)

    Happy redirecting.

COMMENTS

0 Responses to .htaccess redirect

LEAVE A REPLY

This site uses Akismet to reduce spam. Learn how your comment data is processed.