Reply to Re: Redirection based on Query string

Your name:

Reply:


Posted by Reffo on 09/12/07 20:52

>
> The code was giving the 302, because that is what the [F] told it to do.
>
> I think you need 3 lines in your .htaccess file only
>
> RewriteEngine on
> RewriteCond %{QUERY_STRING} .*http:\/\/.* [NC]
> RewriteRule ^/.*) /btrap/index.php [L,R]
>
> This will send them to your /btrap/index.php file, where you can create a
> suitable page for them.
>
> If you want to send them to another site, the last line is...
>
> RewriteRule ^/(.*) http://fully.qualified.domain.name/$1 [L,R]
>
> I don't think the other entries are necessary.
>
Thank You!

I removed some of the other lines in htaccess, and it seems like
everyone using =http:// is being redirected and catched by the trap.

At least it has worked for two days now.

Regards,
Trond

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация