Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

301 Redirect Question

Options
  • 15-04-2007 9:56pm
    #1
    Closed Accounts Posts: 139 ✭✭


    Hi guys,

    I've got domain X.com and domain Y.com.

    I want to 301 redirect X to Y.

    Is it possible to detect at Y (using PHP, for example) that the visitor actually entered the site with a request for X?

    Many thanks in advance.


Comments

  • Registered Users Posts: 1,127 ✭✭✭smcelhinney


    What server is on your domains?

    If you're using Apache, mod_rewrite will do this for you. And is relatively easy to set up.

    Google it, lots of resources and examples.


  • Closed Accounts Posts: 139 ✭✭eoge


    Hi,

    I'm using Apache, but I can't think how mod_rewrite would help.


  • Registered Users Posts: 1,127 ✭✭✭smcelhinney


    tut tut tut tut ....

    :rolleyes:

    A simple google of mod_rewrite 301 redirect, which returned http://www.gnc-web-creations.com/301-redirect.htm
    would have negated the need for that post

    stephen.


  • Registered Users Posts: 7,739 ✭✭✭mneylon


    You can use mod_rewrite to handle the redirection, though you're going to have to use something else to log the requested URIs


Advertisement