Grow your CSS skills. Land your dream job.

htaccess redirect with masking…

  • # June 6, 2012 at 12:06 pm

    I’ve setup a basic redirect in the htaccess file:

    redirect http://www.old-domain.com//subfolder http://www.new-domain.com/subfolder/

    I would also like to include masking so the old-domain name is displayed instead of new-domain name when the user is redirected.

    Thank you,
    CM

    __
    # June 6, 2012 at 6:51 pm

    (This probably qualifies as an “Other Discussions” topic: it certainly has nothing to do with CSS.)

    I would also like to include masking so the old-domain name is displayed instead of new-domain name when the user is redirected.

    @charlie

    apache doesn’t allow this, for both practical and security reasons.

    Do you have both domains on the same host? just point them both at the same root directory.

    # June 11, 2012 at 8:19 am

    Yes, both domains are on the same host. However redirect will only effect on subdirectory, not whole site.

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".