Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    CSS
    CSS is offline
    New Coder
    Join Date
    Jun 2006
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .htaccess Redirection Help

    I really have no knowledge as far as Apache/.htaccess/rewrites go... what I want to do is:

    http://page.com/?redir=x - Replacing x with any URL, automatically redirects the page to that URL... for example: http://page.com/?redir=http://website.com/ will take you to website.com.

    Doing this will set the referer from all redirects to http://page.com/?redir=x, correct?

  • #2
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I haven't actually tested this, but from this mod_rewrite guide I think you would want to use:

    Code:
    RewriteRule http://www.yourdomain.com/?redir=(.*) $1 [R=301,L]
    Let me know if this works for you, if not we can try something different.
    Last edited by charlesandrews; 10-01-2009 at 03:07 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •