Treehouse: Grow your CSS skills. Land your dream job.

htaccess file to redirect to a script

  • # June 13, 2012 at 11:09 pm

    Hi Everyone

    I’m trying to write an .htaccess rule to redirect to a script, which further redirects somewhere else. However, I don’t want the address url to change during the .htaccess part of the redirect.

    this page should be hanlded by
    but still appears in browser.

    Thanks for reply in advance

    # June 14, 2012 at 2:08 pm
    RewriteEngine On
    RewriteBase /

    RewriteRule page/test/hello enviornment_test.php

    You might want to read some basic htaccess tutorials. Almost ANY tutorial you find (even bad ones) will clearly explain at least this much.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.