Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm using apache2.2

http://my.site.com/redirect?url=http%3A%2F%2Fwww.google.com
->
Redirect 301 http://www.google.com
share|improve this question

1 Answer 1

maybe you need php and do redirection.

<?php
header("Location: {$_GET['redirection']}";
?>

you can also use

  RewriteEngine on
  RewriteRule ^/(.*) http://www.askdavetaylor.com/$1 [L,R=301]

as described on dave website: http://www.askdavetaylor.com/how_do_i_add_a_301_redirect_to_my_apache_httpdconf.html

share|improve this answer
    
Thank you for replying. but I have to resolve by using only apache conf and have to decode url=$1 –  freddiefujiwra Sep 27 '11 at 3:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.