0

I'm using apache2.2

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

1 Answer 1

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

1
  • Thank you for replying. but I have to resolve by using only apache conf and have to decode url=$1 Sep 27, 2011 at 3:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .